Click here to Skip to main content
15,914,386 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Question::FindFirstFile problem [modified] Pin
Loreia10-Jan-09 4:48
Loreia10-Jan-09 4:48 
AnswerRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 5:15
sitebuilderLuc Pattyn10-Jan-09 5:15 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 5:52
Loreia10-Jan-09 5:52 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 6:03
sitebuilderLuc Pattyn10-Jan-09 6:03 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 6:20
Loreia10-Jan-09 6:20 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 6:46
sitebuilderLuc Pattyn10-Jan-09 6:46 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 7:55
Loreia10-Jan-09 7:55 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 8:09
sitebuilderLuc Pattyn10-Jan-09 8:09 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 8:33
Loreia10-Jan-09 8:33 
GeneralRe: ::FindFirstFile problem Pin
Randor 10-Jan-09 8:59
professional Randor 10-Jan-09 8:59 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 10:09
Loreia10-Jan-09 10:09 
GeneralRe: ::FindFirstFile problem Pin
Randor 10-Jan-09 10:45
professional Randor 10-Jan-09 10:45 
GeneralRe: ::FindFirstFile problem Pin
Loreia10-Jan-09 10:56
Loreia10-Jan-09 10:56 
GeneralRe: ::FindFirstFile problem Pin
Luc Pattyn10-Jan-09 10:11
sitebuilderLuc Pattyn10-Jan-09 10:11 
QuestionRe: ::FindFirstFile problem Pin
David Crow12-Jan-09 3:36
David Crow12-Jan-09 3:36 
AnswerRe: ::FindFirstFile problem Pin
Loreia12-Jan-09 7:24
Loreia12-Jan-09 7:24 
QuestionCan I handle click events on a static control [SOLVED] Pin
sashoalm10-Jan-09 4:15
sashoalm10-Jan-09 4:15 
AnswerRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 4:35
professional Randor 10-Jan-09 4:35 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 5:01
sashoalm10-Jan-09 5:01 
GeneralRe: Can I handle click events on a static control Pin
Code-o-mat10-Jan-09 5:43
Code-o-mat10-Jan-09 5:43 
GeneralRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 6:15
professional Randor 10-Jan-09 6:15 
GeneralRe: Can I handle click events on a static control [modified] Pin
sashoalm10-Jan-09 6:59
sashoalm10-Jan-09 6:59 
Could there be something wrong with my static control? It's not working, and I checked that the id is not the default IDC_STATIC.

Here's how the static is defined in the *.rc2 file
LTEXT           "Static",IDC_MY_STATIC_ID,81,198,109,8,
                SS_CENTERIMAGE, SS_NOTIFY


I turned on the message loop tracing with MFC Tracer, but the only WM_LBUTTONUP and WM_LBUTTONDOWN messages were appearing when I was clicking on the static:
WndProc: hwnd=0x5B0BBA, msg = WM_LBUTTONDOWN (0x0001, 0x015700D0)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000000)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000001)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000002)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000003)
WndProc: hwnd=0x5B0BBA, msg = WM_LBUTTONUP (0x0000, 0x015700D0)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000000)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000001)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000002)
WndProc: hwnd=0x5B0BBA, msg = 0x036A (0x0000, 0x00000003)



[Added]
I checked again and the hwnd is actually that of the dialog! The static control didn't receive any event in the first place.

There is sufficient light for those who desire to see, and there is sufficient darkness for those of a contrary disposition.
Blaise Pascal

modified on Saturday, January 10, 2009 1:28 PM

GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 7:32
sashoalm10-Jan-09 7:32 
GeneralRe: Can I handle click events on a static control Pin
Randor 10-Jan-09 7:35
professional Randor 10-Jan-09 7:35 
GeneralRe: Can I handle click events on a static control Pin
Jijo.Raj10-Jan-09 6:57
Jijo.Raj10-Jan-09 6:57 

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.