BOOL ParkOrdDlg::OnInitDialog() { CDialog::OnInitDialog(); InitCtrls(); CreateToolTips(); UpdateData(FALSE); return TRUE; }
BOOL CMsgTipDlg::OnInitDialog(CWindow wndFocus, LPARAM lInitParam) { InitCtrls(); // 初始化控件 SetDlgAutoSize(); // 自动调整对话框大小 SetCtrlsAutoSize(); // 自动调整控件大小 ModifyStyleEx(WS_EX_APPWINDOW, WS_EX_TOOLWINDOW|WS_EX_NOACTIVATE); return FALSE; }
// Overrides BOOL CMainPropertyPage2::OnSetActive() { if (!m_bInit) { m_bInit = TRUE; InitCtrls(); DoDataExchange(DDX_LOAD); } SetModified(TRUE); return TRUE; }
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(); }
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(); }
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(); }