Exemplo n.º 1
0
BOOL ParkOrdDlg::OnInitDialog()
{
	CDialog::OnInitDialog();

	InitCtrls();

	CreateToolTips();
	UpdateData(FALSE);
	return TRUE;
}
Exemplo n.º 2
0
BOOL CMsgTipDlg::OnInitDialog(CWindow wndFocus, LPARAM lInitParam)
{
	InitCtrls();			// 初始化控件
	SetDlgAutoSize();		// 自动调整对话框大小
	SetCtrlsAutoSize();		// 自动调整控件大小

	ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW|WS_EX_NOACTIVATE);

	return FALSE;
}
Exemplo n.º 3
0
// Overrides
BOOL CMainPropertyPage2::OnSetActive()
{
	if (!m_bInit) {
		m_bInit = TRUE;
		InitCtrls();
		DoDataExchange(DDX_LOAD);
	}

	SetModified(TRUE);
	return TRUE;
}
Exemplo n.º 4
0
void CTexturePreviewDialog::OnSize(wxSizeEvent& event)
{
    wxSizer* pSizer = GetSizer();
    pSizer->DeleteWindows();
    InitCtrls();
    InsertTextureToListCtrl();
    if (m_nCurrentIndex != INVALID_DATA)
    {
        m_pListCtrl->SetItemState(m_nCurrentIndex, 1, wxLIST_STATE_SELECTED);
        ShowTextureInfo(m_nCurrentIndex);
    }
    event.Skip();
}
Exemplo n.º 5
0
CEditorMainFrame::CEditorMainFrame(const wxString& title) : wxFrame(NULL, wxID_ANY, title, MAINFRAMEPOSITION, MAINFRAMESIZE)
{
    SetIcon(wxICON(sample));
    m_Manager.SetManagedWindow(this);
    m_pWEditAnimation = NULL;
    InitMenu();
    InitCtrls();

    SetStatusBar(new wxStatusBar(this));
    SetStatusText(wxT("Welcome!"));
    SetMinSize(wxSize(400,300));

    Centre();
 }
Exemplo n.º 6
0
CTexturePreviewDialog::CTexturePreviewDialog(wxWindow *parent, wxWindowID id, const wxString &title, const wxPoint &pos, const wxSize &size, long style, const wxString &name)
    : CEditDialogBase(parent, id, title, pos, size, style, name)
    , m_bInitialized(false)
    , m_nCurrentIndex(INVALID_DATA)
    , m_pListCtrl(NULL)
    , m_pPanel(NULL)
    , m_nTexturePreviewIconSize(DefaultTexturePreviewIconSize)
{
    std::thread thread(std::bind(&CTexturePreviewDialog::InitTexture, this));
    thread.detach();

    SetSizer(new wxBoxSizer(wxVERTICAL));
    m_pTexturePreviewIconList = new wxImageList(m_nTexturePreviewIconSize, m_nTexturePreviewIconSize, true);
    InitCtrls();
}