Click here to Skip to main content
15,905,963 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Bad topic id? Pin
ns25-Oct-02 7:26
ns25-Oct-02 7:26 
GeneralRe: Bad topic id? Pin
Ravi Bhavnani25-Oct-02 9:33
professionalRavi Bhavnani25-Oct-02 9:33 
GeneralWindow resizing using mouse Pin
Zakarya Shah25-Oct-02 5:58
sussZakarya Shah25-Oct-02 5:58 
GeneralRe: Window resizing using mouse Pin
Maximilien25-Oct-02 6:09
Maximilien25-Oct-02 6:09 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:09
mentorPaul M Watt25-Oct-02 8:09 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:06
mentorPaul M Watt25-Oct-02 8:06 
GeneralRe: Window resizing using mouse Pin
Maximilien25-Oct-02 8:21
Maximilien25-Oct-02 8:21 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 8:50
mentorPaul M Watt25-Oct-02 8:50 
I learned a lot about this stuff when I emulated the entire mouse processing logic over a remote connection. I found that every time a mouse message is called, there is a WM_NCHITTEST / WM_SETCURSOR pair that gets generated right before the WM_MOUSExxx message is processed.

The WM_NCHITTEST message is used to determine which type of message to send, non-client or normal, and the WM_SETCURSOR message is used to update the cursor as it moves over different regions of the windows display.

I have thought about writing an article about this whole process for CodeProject, but I am not sure how many people are still interested in learning the internals of Windows.

Another interesting message sequence is the chain of messages that is generated by the default message handler for WM_SYSCOMMAND.


Build a man a fire, and he will be warm for a day
Light a man on fire, and he will be warm for the rest of his life!

GeneralRe: Window resizing using mouse Pin
Shog925-Oct-02 13:13
sitebuilderShog925-Oct-02 13:13 
GeneralRe: Window resizing using mouse Pin
6545645625-Oct-02 9:32
6545645625-Oct-02 9:32 
GeneralRe: Window resizing using mouse Pin
Paul M Watt25-Oct-02 10:11
mentorPaul M Watt25-Oct-02 10:11 
GeneralCListCtrl and SetTextColor Pin
Richard Hudson25-Oct-02 5:18
Richard Hudson25-Oct-02 5:18 
GeneralRe: CListCtrl and SetTextColor Pin
Maximilien25-Oct-02 5:32
Maximilien25-Oct-02 5:32 
GeneralRe: CListCtrl and SetTextColor Pin
Richard Hudson25-Oct-02 5:37
Richard Hudson25-Oct-02 5:37 
GeneralRe: CListCtrl and SetTextColor Pin
Michael Dunn25-Oct-02 20:34
sitebuilderMichael Dunn25-Oct-02 20:34 
QuestionPicture in a ListCtrl background ?? Pin
Cris25-Oct-02 5:04
Cris25-Oct-02 5:04 
AnswerRe: Picture in a ListCtrl background ?? Pin
Rob Caldecott25-Oct-02 6:21
Rob Caldecott25-Oct-02 6:21 
GeneralDecompression Pin
Jawache25-Oct-02 4:55
Jawache25-Oct-02 4:55 
GeneralRe: Decompression Pin
Ravi Bhavnani25-Oct-02 7:17
professionalRavi Bhavnani25-Oct-02 7:17 
GeneralArobat isn't closing Pin
pnpfriend25-Oct-02 4:10
pnpfriend25-Oct-02 4:10 
GeneralRe: Arobat isn't closing Pin
l a u r e n25-Oct-02 4:20
l a u r e n25-Oct-02 4:20 
GeneralRe: Arobat isn't closing Pin
pnpfriend25-Oct-02 4:29
pnpfriend25-Oct-02 4:29 
GeneralRe: Arobat isn't closing Pin
pba_25-Oct-02 11:40
pba_25-Oct-02 11:40 
GeneralpDlg->Create() hell in a dll Pin
Rohit  Sinha25-Oct-02 3:46
Rohit  Sinha25-Oct-02 3:46 
GeneralRe: pDlg->Create() hell in a dll Pin
User 665825-Oct-02 6:38
User 665825-Oct-02 6:38 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.