GUI/컨트롤
-
트리 컨트롤 - MFCGUI/컨트롤 2008. 12. 12. 23:03
CTreeCtrl on TVN_SELCHANGED NM_TREEVIEW .itemNew on TVN_ITEMEXPANDING .SetImageList() .InsertItem() .DeleteItem() .GetChildItem() .GetItemText() .Expand class CTreeDlg : public CDialog { // Construction public: CTreeDlg(CWnd* pParent = NULL); // standard constructor CImageList m_ImageList; // Dialog Data //{{AFX_DATA(CTreeDlg) enum { IDD = IDD_TREE_DIALOG }; CTreeCtrl m_ctrlTree; //}}AFX_DATA ....
-
툴바 - MFCGUI/컨트롤 2008. 12. 8. 20:35
CFrameWnd -> CWnd .EnableDocking() CBRS_ALIGN_ANY .DockControlBar() AFX_IDW_DOCKBAR_BOTTOM AFX_IDW_DOCKBAR_LEFT. .FloatControlBar() .LoadBarState() .SaveBarState() CControlBar -> CWnd GetWindowRect(rcChild); ScreenToClient(rcChild); rcChild.OffsetRect(ptOffset); pwndChild->MoveWindow(rcChild, FALSE); pwndChild = pwndChild->GetNextWindow(); } CRect rcWindow; GetWindowRect(rcWindow); rcWindow.righ..
-
키보드/마우스 버튼 - MFCGUI/컨트롤 2008. 12. 8. 18:02
CWnd WM_CHAR VK_BACK WM_KEYDOWN VK_LEFT VK_RIGHT VK_UP VK_DOWN VK_PRIOR VK_NEXT VK_HOME class CPractice3_3View : public CView { // { CPoint m_ptNow; CString m_strOutText; // } protected: // create from serialization only CPractice3_3View(); ... // Generated message map functions protected: //{{AFX_MSG(CPractice3_3View) afx_msg void OnChar(UINT nChar, UINT nRepCnt, UINT nFlags); afx_msg void OnKe..
-
스플리터(정적 분할 윈도우) - MFCGUI/컨트롤 2008. 12. 8. 17:10
CSplitterWnd .CreateStatic() .CreateView() .SetRowInfo() .GetPane() class CMainFrame : public CFrameWnd { ... // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CMainFrame) ... protected: virtual BOOL OnCreateClient(LPCREATESTRUCT lpcs, CCreateContext* pContext); //}}AFX_VIRTUAL ... private: CSplitterWnd m_wndSplit; // 멤버 변수 등록 }; BOOL CMainFrame::OnCreateClient(LPC..
-
리스트 컨트롤 - MFCGUI/컨트롤 2008. 12. 6. 16:36
리스트 컨트롤 CListCtrl LVS_EX_FULLROWSELECT LVS_EX_CHECKBOXES OnDblclkList LVN_ITEMCHANGED .SetImageList() .SetExtendedStyle() LVS_EX_FULLROWSELECT LVS_EX_GRIDLINES .InsertColumn() LVCFMT_LEFT|LVCFMT_CENTER|LVCFMT_RIGHT .GetItemCount() .DeleteItem() .DeleteAllItems() .InsertItem() .SetItemText() .SetItem() .GetSelectedCount() .GetFirstSelectedItemPosition() .GetNextSelectedItem() .GetSelectionMark() ..