Dialog toolbar problem
C / C++ / MFC
4
Posts
2
Posters
0
Views
1
Watching
-
After adding a toolbar, when drawing the client, I need to adjust the rect which is returned in
GetClientRect
. Is there any way to make it transparent?logics
-
-
But your question spoke about making it transparent :^) ...anyway, to get the actual client area (drawing area), you can create it as a child window that covers the entire space except the toolbars etc. and put all your controls inside that child window. Then a call to GetClientRect with child window as a parameter will give you the desired rect (you can take a look at this[^]example). I am not aware of any other more sophisticated way to achieve this.
It's better to know some of the questions than all of the answers.
Pravin.