GUI/Skin
컨트롤
jjryu
2009. 10. 11. 17:40
Windows Common Controls such as List-View, Tree-View, Tab, and ToolTip support custom draw.
XP 스타일 컨트롤 사용하기
WM_CTLCOLORBTN // 푸시 버튼은 오너 드로우 버튼으로
WM_CTLCOLOREDIT
WM_CTLCOLORLISTBOX
WM_CTLCOLORSCROLLBAR
WM_CTLCOLORSTATIC
WM_CTLCOLORDLG
WM_CTLCOLORMSGBOX
WM_SETFONT
standard Windows controls
button
combo box
list box
progress bar
static
tab
common controls
Header
List-view
Rebar
Toolbar
ToolTip
Trackbar
Tree-view
owner draw
available for all controls.
Custom draw
available only for the common controls
not available for the standard (and older) Windows controls
trackbar(sliderbar) control
channel // TBCD_CHANNEL
thumb marker // TBCD_THUMB
increment tick marks // TBCD_TICS
참조 사이트:
Version 4.70 of Comctl32.dll
customizing a control's appearance without having to implement full owner-draw
customizing a control's appearance without having to implement full owner-draw
XP 스타일 컨트롤 사용하기
YourApp.manifest
--
[View|Resource Includes...]
[View|Resource Includes...]
CREATEPROCESS_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.exe.manifest"
or
[Project|Settings...|C/C++|Preprocessor|Preprocessor definitions:]
[Project|Settings...|C/C++|Preprocessor|Preprocessor definitions:]
ISOLATION_AWARE_ENABLED=1
[View|Resource Includes...]
#include "Winuser.rh"
ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.manifest"
ISOLATIONAWARE_MANIFEST_RESOURCE_ID RT_MANIFEST "YourApp.manifest"
--
CreateActCtx()
ReleaseActCtx()
ActivateActCtx()
DeactivateActCtx()
푸시 버튼의 색상을 변경할려면 오너 드로우 버튼을 사용하는 수 밖에 없다. // WM_CTLCOLORBTNCreateActCtx()
ReleaseActCtx()
ActivateActCtx()
DeactivateActCtx()
WM_CTLCOLORBTN // 푸시 버튼은 오너 드로우 버튼으로
WM_CTLCOLOREDIT
WM_CTLCOLORLISTBOX
WM_CTLCOLORSCROLLBAR
WM_CTLCOLORSTATIC
WM_CTLCOLORDLG
WM_CTLCOLORMSGBOX
WM_SETFONT
standard Windows controls
button
combo box
list box
progress bar
static
tab
common controls
Header
List-view
Rebar
Toolbar
ToolTip
Trackbar
Tree-view
owner draw
available for all controls.
Custom draw
available only for the common controls
not available for the standard (and older) Windows controls
trackbar(sliderbar) control
channel // TBCD_CHANNEL
thumb marker // TBCD_THUMB
increment tick marks // TBCD_TICS
참조 사이트:
http://msdn.microsoft.com/en-us/library/bb773175(VS.85).aspx
http://www.ureader.com/msg/16601268.aspx
http://msdn.microsoft.com/en-us/library/aa376620(v=VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa375197%28v=VS.85%29.aspx
http://www.ureader.com/msg/16601268.aspx
http://msdn.microsoft.com/en-us/library/aa376620(v=VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa375197%28v=VS.85%29.aspx