GUI
-
버튼 컨트롤 - Win32GUI/Skin 2010. 6. 12. 15:57
푸시 버튼의 색상을 변경할려면 오너 드로우 버튼을 사용하는 수 밖에 없다. // WM_CTLCOLORBTN 오너 드로우 BS_OWNERDRAW on WM_DRAWITEM DRAWITEMSTRUCT .itemState ODS_SELECTED LRESULT CALLBACK WndProc(HWND hWnd,UINT iMessage,WPARAM wParam,LPARAM lParam) { static HBITMAP s_hUp, s_hDown; switch (iMessage) { case WM_CREATE: s_hUp = LoadBitmap(g_hInst, MAKEINTRESOURCE(IDB_BTNUP)); s_hDown = LoadBitmap(g_hInst, MAKEINTRESOURCE(IDB_BTNDOWN));..
-
리스트 박스GUI/Skin 2010. 6. 8. 10:14
LBS_OWNERDRAWFIXED on WM_MEASUREITEM MEASUREITEMSTRUCT .itemHeight on WM_DRAWITEM DRAWITEMSTRUCT .CtlType .CtlID .itemState ODS_SELECTED .hDC .rcItem .itemData 참조 사이트: http://www.codeproject.com/KB/combobox/MFC_OwnerDraw_Listbox.aspx?display=Print http://www.codeproject.com/KB/combobox/clistboxst.aspx?display=Print
-
컨트롤 - MFCGUI/Skin 2010. 6. 4. 16:56
CWnd::Create() or DDX_Control() SubclassWindow() PreSubclassWindow() // virtual CWnd .PreSubclassWindow() // virtual .ModifyStyle() BS_OWNERDRAW .SubclassDlgItem() or .SubclassWindow() CDC .DrawFrameControl() DFC_BUTTON DFCS_BUTTONPUSH DFC_SCROLL DFCS_SCROLLDOWN DFCS_PUSHED DFCS_INACTIVE .DrawEdge() EDGE_SUNKEN // BDR_SUNKENOUTER, BDR_SUNKENINNER BF_RECT .DrawFocusRect() .DrawState() DSS_DISABLE..
-
custom page - nsDialogs(NSIS)GUI/Window 2010. 1. 24. 13:54
custom pages in the installernsDialogsInstallOptions Page custom nsDialogs::Create${NSD_CreateLabel}${NSD_CreateText} !include LogicLib.nsh !include nsDialogs.nsh Name nsDialogs OutFile nsDialogs.exe XPStyle on Page custom nsDialogsPage nsDialogsPageLeave Page license Page instfiles Var Dialog Var Label Var Text Var Text_State Var Checkbox Var Checkbox_State Function .onInit StrCpy $Text_State "..
-
MFCGUI/Skin 2009. 12. 8. 18:17
사용자 인터페이스 갱신 처리는 다형적으로 작동한다. 메뉴, 툴바 CCmdUI .Enable() .SetText() .SetCheck() .SetRadio() 1. ThemeClass 디렉토리를 프로젝트에 복사하고 프로젝트에 포함시킨다. 2. 타이틀바가 없는 다이얼로그 리소스를 만든다. 3. 다이얼로그 클래스의 베이스 클래스를 CThemeDialog로 수정하다. .SetFontSize() .SetFontColor() .SetShadowColor() .SetFontBold() .SetBackColor() .SetAlignFormat() DT_CENTER DT_VCENTER .SetCaptionArea() .SetCaptionText() .SetBackImage() .SetTransparentByColor()..
-
차일드 컨트롤 - MFCGUI/컨트롤 2009. 10. 28. 09:09
CStatic m_CaptionCtrl; CFont m_Font; void CHardwarePage::DoDataExchange(CDataExchange* pDX) { CNewWizPage::DoDataExchange(pDX); //{{AFX_DATA_MAP(CHardwarePage) DDX_Control(pDX, ST_CAPTION, m_CaptionCtrl); //}}AFX_DATA_MAP } BOOL CHardwarePage::OnInitDialog() { CNewWizPage::OnInitDialog(); // TODO: Add extra initialization here // { m_Font.CreateFont(-16, 0, 0, 0, FW_BOLD, FALSE, FALSE, 0, DEFAUL..
-
컨트롤GUI/Skin 2009. 10. 11. 17:40
Windows Common Controls such as List-View, Tree-View, Tab, and ToolTip support custom draw. Version 4.70 of Comctl32.dll customizing a control's appearance without having to implement full owner-draw XP 스타일 컨트롤 사용하기 YourApp.manifest Your application description here. -- [View|Resource Includes...] CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest" or [Project|Settings...|C/C++..