Click here to Skip to main content
15,902,939 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralQuestion about window's state!!! Pin
kokehqyu2-Mar-05 18:45
kokehqyu2-Mar-05 18:45 
GeneralRe: Question about window's state!!! Pin
Ravi Bhavnani3-Mar-05 3:55
professionalRavi Bhavnani3-Mar-05 3:55 
GeneralRe: Question about window's state!!! Pin
kokehqyu3-Mar-05 17:39
kokehqyu3-Mar-05 17:39 
GeneralDevstudio addin Ques Pin
Jetli Jerry2-Mar-05 18:37
Jetli Jerry2-Mar-05 18:37 
GeneralMFC MDI with sound! Pin
Member 14844962-Mar-05 18:24
Member 14844962-Mar-05 18:24 
GeneralRe: MFC MDI with sound! Pin
David Crow3-Mar-05 2:17
David Crow3-Mar-05 2:17 
Questionhow do i..... Pin
namaskaaram2-Mar-05 17:27
namaskaaram2-Mar-05 17:27 
AnswerRe: how do i..... Pin
Steen Krogsgaard2-Mar-05 21:12
Steen Krogsgaard2-Mar-05 21:12 
I think you'll have to capture the mouse in the control when you receive a WM_LBUTTONDOWN, then I'm pretty sure you'll get the WM_LBUTTONUP message regardless of where the mouse cursor is when the button is released. But I've never used mouse capture myself, so I can't really give any good advice. Look into SetCapture in MSDN.

WM_NCLBUTTONUP is send when the mouse button is released in the windows' non-client area, i.e. title bar, menu bar, border etc. A static control has no non-client area (the client area completely fills the window area) so you won't receive any WM_NC* messages. I think you misunderstood the concept of non-client area, it's the part of the window area (for the control/window) that's not client area.


Cheers
Steen.

"To claim that computer games influence children is ridiculous. If Pacman had influenced children born in the 80'ies we would see a lot of youngsters running around in dark rooms eating pills while listening to monotonous music"
GeneralRe: how do i..... Pin
namaskaaram2-Mar-05 22:08
namaskaaram2-Mar-05 22:08 
GeneralRe: how do i..... Pin
Steen Krogsgaard2-Mar-05 23:47
Steen Krogsgaard2-Mar-05 23:47 
GeneralRe: how do i..... Pin
namaskaaram3-Mar-05 17:28
namaskaaram3-Mar-05 17:28 
GeneralProblem with polymorphism Pin
ng kok chuan2-Mar-05 17:14
ng kok chuan2-Mar-05 17:14 
GeneralRe: Problem with polymorphism Pin
Ryan Binns2-Mar-05 17:17
Ryan Binns2-Mar-05 17:17 
GeneralRe: Problem with polymorphism Pin
ng kok chuan2-Mar-05 17:23
ng kok chuan2-Mar-05 17:23 
GeneralRe: Problem with polymorphism Pin
Ryan Binns2-Mar-05 22:27
Ryan Binns2-Mar-05 22:27 
GeneralRe: Problem with polymorphism Pin
ng kok chuan3-Mar-05 14:31
ng kok chuan3-Mar-05 14:31 
GeneralRe: Problem with polymorphism Pin
David Crow3-Mar-05 2:35
David Crow3-Mar-05 2:35 
GeneralRe: Problem with polymorphism Pin
ng kok chuan2-Mar-05 20:01
ng kok chuan2-Mar-05 20:01 
GeneralRe: Problem with polymorphism Pin
Cedric Moonen2-Mar-05 20:36
Cedric Moonen2-Mar-05 20:36 
GeneralRe: Problem with polymorphism Pin
Steen Krogsgaard2-Mar-05 21:40
Steen Krogsgaard2-Mar-05 21:40 
GeneralRe: Problem with polymorphism Pin
Alton Williams5-Mar-05 4:03
Alton Williams5-Mar-05 4:03 
GeneralC++ Wrapper for libCURL Pin
a_diwakar2-Mar-05 17:02
a_diwakar2-Mar-05 17:02 
Questionhow to use a video codec to compress avi file Pin
Mohsen Saad2-Mar-05 15:22
Mohsen Saad2-Mar-05 15:22 
GeneralText to matrix conversion Pin
SeanSheehan2-Mar-05 14:32
SeanSheehan2-Mar-05 14:32 
GeneralSmall executables Pin
Verolix2-Mar-05 13:49
Verolix2-Mar-05 13:49 

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.