Click here to Skip to main content
15,891,567 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Can I handle click events on a static control Pin
sashoalm10-Jan-09 7:04
sashoalm10-Jan-09 7:04 
QuestionLayoutRTL creating issues in displaying image data Pin
Alex@9C10-Jan-09 0:17
Alex@9C10-Jan-09 0:17 
QuestionCFile::sharingViolation exception? Pin
AnayKulkarni10-Jan-09 0:05
AnayKulkarni10-Jan-09 0:05 
AnswerRe: CFile::sharingViolation exception? Pin
Stuart Dootson10-Jan-09 0:12
professionalStuart Dootson10-Jan-09 0:12 
Questionhow to deal with HTTP message in Chtmlview(MFC) Pin
maoxintt9-Jan-09 22:56
maoxintt9-Jan-09 22:56 
AnswerRe: how to deal with HTTP message in Chtmlview(MFC) Pin
Stuart Dootson10-Jan-09 0:06
professionalStuart Dootson10-Jan-09 0:06 
GeneralRe: how to deal with HTTP message in Chtmlview(MFC) Pin
maoxintt11-Jan-09 1:59
maoxintt11-Jan-09 1:59 
GeneralRe: how to deal with HTTP message in Chtmlview(MFC) Pin
Stuart Dootson11-Jan-09 2:14
professionalStuart Dootson11-Jan-09 2:14 
GeneralRe: how to deal with HTTP message in Chtmlview(MFC) Pin
maoxintt11-Jan-09 14:51
maoxintt11-Jan-09 14:51 
Questionwork VB project on VC++ MFC exe Pin
Member 46265689-Jan-09 22:13
Member 46265689-Jan-09 22:13 
AnswerRe: work VB project on VC++ MFC exe Pin
Stuart Dootson9-Jan-09 22:34
professionalStuart Dootson9-Jan-09 22:34 
AnswerRe: work VB project on VC++ MFC exe Pin
Hamid_RT9-Jan-09 23:45
Hamid_RT9-Jan-09 23:45 
QuestionPrint preview list control Pin
Member 23588019-Jan-09 21:07
Member 23588019-Jan-09 21:07 
AnswerRe: Print preview list control Pin
Stuart Dootson9-Jan-09 22:32
professionalStuart Dootson9-Jan-09 22:32 

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.