Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
On-screen drawing
#2
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 ?

Code:
Copy      Help
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.

Code:
Copy      Help
,case WM_PAINT
,,PAINTSTRUCT pa
,,int hdc=BeginPaint(htb &pa)
,,int _hTheme=OpenThemeData(0 L"Taskbar")
,,RECT rc;GetClientRect htb &rc
,,DrawThemeBackground(_hTheme hdc WP_CAPTION 0 &rc 0)
,,CloseThemeData(_hTheme)
,,EndPaint htb &pa
pi


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)