Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Painting Statusbar Problem

Status
Not open for further replies.

LuckyLuke

Programmer
Mar 28, 2001
188
NL
Hi,

I've created an application basically with a rebar/menubar/toolbar, workspace, floating toolwindows and a statusbar. The problem is fairly small, but I find it annoying I can't figure it out :) When resizing really small, the statusbar will once hover the toolwindows. The toolwindows though draw on top of the statusbar, even though the statusbar has a higher z-order. A similair problem is that I want the same statusbar, if the window is resized even smaller, to go underneath the rebar. If I change the z-order for the statusbar to be beneath the rebar, the statusbar still draws on top of the rebar/toolbar/menubar. I've ferified with Spy++ if the statusbar really is below the rebar and if the toolwindow really is below the statusbar.

For the rebar/menubar/toolbar I use no redrawfunctions during resizing (only the MoveWindow(...., TRUE)). For the toolwindows I use RedrawWindow(hWnd, NULL, NULL, RDW_INVALIDATE | RDW_UPATENOW | RDW_FRAME). For the statusbar I also don't use any redrawing functions, I just pass on the WM_SIZE message.

If anyone has any idea's on how I might solve this, please tell whatever comes to your mind :)

Thanks in advance,

Luuk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top