08-27-2007, 05:02 PM
i figured out how to get the taskbar background and draw
it to the hdc (testing in OSD_ProcExample).
can you tell me how to set the background of ToolbarWindow32 ?
do i have to use NMTBCUSTOMDRAW like in Dialog Explorer for LV and TV ?
i tried this in my taskbar dialog, but i guess its nonsense ...
htb is the handle of ToolbarWindow32.
it to the hdc (testing in OSD_ProcExample).
can you tell me how to set the background of ToolbarWindow32 ?
do i have to use NMTBCUSTOMDRAW like in Dialog Explorer for LV and TV ?
def WP_CAPTION 1
int _hTheme=OpenThemeData(0 L"Taskbar")
RECT r2.left=0;r2.right=100; r2.top=0; r2.bottom=30
DrawThemeBackground(_hTheme hdc WP_CAPTION 0 &r2 0)
CloseThemeData(_hTheme)
i tried this in my taskbar dialog, but i guess its nonsense ...
htb is the handle of ToolbarWindow32.