Click here to Skip to main content
15,891,868 members

Comments by tgis.top (Top 3 by date)

tgis.top 14-Feb-11 0:04am View    
I'm sorry I did not explain my question clearly. Sending WM_NCCALCSIZE message is not as easy as sending other messages for me. One must pass each parameter of SendMessage precisely to send a WM_NCCALCSIZE successfully. I have tried many time according to http://msdn.microsoft.com/en-us/library/ms632634(v=vs.85).aspx but failed each time.
tgis.top 13-Feb-11 23:52pm View    
Because it have already been done by using inter-operation and Marshal. You may think I should drag in another Control(may be label) to serve as caption and some other controls serve as border. Than track the mousein and mouseleave event of the caption to make the form Collapse and expend. There are some shortcomings. So I try to make the client area shrink for border and Caption. If I make form's client area shrank, message hook is the only method to track the set-aside none client area mouse message.

Pure .NET can not make client area shrink and paint the none client area.
tgis.top 12-Feb-11 3:37am View    
Thinks, but i want to how to solve this problem. May someone can tell me how to use SendMessage Api to send a WM_NCCALCSIZE message?