Click here to Skip to main content
15,884,472 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi , i want to highlight my main dialog rect , how to create a rectangle around my main dialog windows ?
Posted
Comments
Mohibur Rashid 29-Apr-12 22:25pm    
your question hardly make any sense, ask again.

1 solution

Not sure you mean this, but you could try handling WM_NCCALCSIZE[^] and WM_NCPAINT[^] and draw your own border around your dialog window.

In case you should need it, you can do
...
SetWindowPos(NULL, 0, 0, 0, 0, SWP_NOZORDER | SWP_NOMOVE | SWP_NOSIZE | SWP_DRAWFRAME);
...
to make your dialog redraw its frame.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900