GUI/컨트롤
-
MDI - MFCGUI/컨트롤 2008. 12. 22. 21:44
여러가지 도큐먼트 타입을 지원시 메뉴, 아이콘, 스트링 리소스 추가 class CDrawApp : public CWinApp { ... // Implementation //{{AFX_MSG(CDrawApp) afx_msg void OnAppAbout(); afx_msg void OnFileNew(); afx_msg void OnFileNewSelect(); afx_msg void OnFileNewDraw(); afx_msg void OnFileNewText(); afx_msg void OnFileOpen(); //}}AFX_MSG DECLARE_MESSAGE_MAP() // { private: int m_nNewDocType; // } }; BEGIN_MESSAGE_MAP(CDrawApp, CWinApp..
-
상태 바 - MFCGUI/컨트롤 2008. 12. 14. 18:02
CMainFrame m_wndStatusBar CStatusBarCtrl .SetBkColor() CStatusBar -> CControlBar .Create() .SetIndicators() ID_SEPARATOR .SetPaneInfo() 특정 Pane의 속성 변경 SBPS_NOBORDERS SBPS_POPOUT SBPS_DISABLED SBPS_NORMAL SBPS_STRETCH .SetPaneText() .GetStatusBarCtrl() .GetItemRect() STRINGTABLE DISCARDABLE BEGIN ID_INDICATOR_POINT "마우스 위치 : X 좌표, Y 좌표" END static UINT indicators[] = { ID_SEPARATOR, // status lin..
-
메뉴 - MFCGUI/컨트롤 2008. 12. 14. 17:53
CWnd m_hMenuDefault OnContextMenu // WM_CONTEXTMENU OnInitMenuPopup // WM_INITMENUPOPUP .SetMenu() .GetMenu() .GetSystemMenu() CMenu m_hMenu .LoadMenu() .GetSubMenu() // CMenu .CreateMenu() .CreatePopupMenu() .DestroyMenu() .Attach() .Detach() .TrackPopupMenu() TPM_LEFTALIGN .EnableMenuItem() MF_ENABLED MF_GRAYED .CheckMenuItem() MF_CHECKED MF_UNCHECKED .AppendMenu() MF_STRING|MF_SEPARATOR| MF_P..
-
텍스트 편집(입력) 컨트롤 - MFCGUI/컨트롤 2008. 12. 13. 00:35
class CPractice4_1Dlg : public CDialog { ... // Dialog Data //{{AFX_DATA(CPractice4_1Dlg) enum { IDD = IDD_PRACTICE4_1_DIALOG }; ... CString m_strEdit; //}}AFX_DATA ... // Generated message map functions //{{AFX_MSG(CPractice4_2Dlg) ... afx_msg void OnChangeEditProdName(); //}}AFX_MSG DECLARE_MESSAGE_MAP() private: void UpdateStockInfo( ); }; ... CPractice4_1Dlg::CPractice4_1Dlg(CWnd* pParent /*..
-
콤보 박스 - MFCGUI/컨트롤 2008. 12. 13. 00:30
CComboBox ON_CBN_SELCHANGE CBS_SIMPLE CBS_DROPDOWN CBS_DROPDOWNLIST .ResetContent() 기존에 있던 모든 항목을 삭제 .AddString() .SetCurSel() .GetCurSel() .SetEditSel() .GetLBText() .GetLBTextLen() ComboBoxEx -> CComboBox // Internet Explorer 3.0 or later extended combo box control // "ComboBoxEx" CBS_SORT // ignored .SetExtendedStyle() CBES_EX_CASESENSITIVE CBES_EX_NOEDITIMAGE CBES_EX_NOEDITIMAGEINDENT CBES_E..
-
리스트 박스 - MFCGUI/컨트롤 2008. 12. 13. 00:25
CListBox ON_LBN_SELCHANGE ON_LBN_DBLCLK on PreCreateWindow LBS_OWNERDRAWFIXED|LBS_OWNERDRAWVARIABLE on MeasureItem on DrawItem on DeleteItem ,Create() .CreateEx() WS_EX_CLIENTEDGE .SetFont() .AddString() .GetCount() .DeleteString() .ItemFromPoint() .SetCurSel() .GetCurSel() .GetTopIndex() .SetTopIndex() .GetItemHeight() .ResetContent() Removes all items from a list box. .GetText() .SetItemData()..
-
버튼 컨트롤 - MFCGUI/컨트롤 2008. 12. 13. 00:18
CButton -> CWnd BS_PUSHBUTTON // 푸시 버튼 .. // 라디오 버튼 .. // 체크 박스 버튼 ON_BN_CLICKED ON_CONTROL_REFLECT_EX(BN_CLICKED) .Create() // 체크 박스 버튼 .SetCheck() .GetCheck() class CChildView : public CWnd { // { CButton m_wndPushButton; // } // Construction public: CChildView(); ... // Generated message map functions protected: //{{AFX_MSG(CChildView) ... afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); ..
-
타이머 - MFCGUI/컨트롤 2008. 12. 12. 23:34
CWnd .SetTimer() .KillTimer() WM_TIMER class CPractice3_2View : public CView { ... // Generated message map functions protected: //{{AFX_MSG(CPractice3_2View) afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct); afx_msg void OnDestroy(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnLButtonDown(UINT nFlags, CPoint point); afx_msg void OnRButtonDown(UINT nFlags, CPoint point); //}}AFX_MSG D..