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

C / C++ / MFC

 
GeneralRe: Can anyone believe this...??? Pin
Chris Losinger5-Apr-01 8:59
professionalChris Losinger5-Apr-01 8:59 
QuestionAre there performance issues(resource or otherwise) in using CStatic controls to display bitmaps? Pin
eric kaminski3-Apr-01 8:13
eric kaminski3-Apr-01 8:13 
GeneralUsing the system image list with CImageList Pin
3-Apr-01 8:09
suss3-Apr-01 8:09 
GeneralRe: Using the system image list with CImageList Pin
Michael Dunn3-Apr-01 8:46
sitebuilderMichael Dunn3-Apr-01 8:46 
GeneralRe: Using the system image list with CImageList Pin
3-Apr-01 9:43
suss3-Apr-01 9:43 
GeneralRe: Using the system image list with CImageList Pin
Michael Dunn3-Apr-01 12:59
sitebuilderMichael Dunn3-Apr-01 12:59 
QuestionHow to get the button click message ??? Pin
Vistac3-Apr-01 5:18
Vistac3-Apr-01 5:18 
AnswerRe: How to get the button click message ??? Pin
Masaaki Onishi3-Apr-01 6:18
Masaaki Onishi3-Apr-01 6:18 
Hello, the codegurus around the world.;)

First of all, even though you creates the button at run time,
you can use Message Map to catch the button click message as long as
we know ID of the button, I think.

Second, if we use PreTranslateMessage function, we can check the current input focus
control or which control sends the message to the parent.

That is, if (pMsg->hwnd == GetDlgItem(ID_BUTTON)->GetSafeHwnd( )) works since
the button clicked must send the message to the parent.
or if (pMsg->hwnd == GetDlgItem(ID_BUTTON)->m_hWnd)....

The button clicked have the current input foucs.
so, if (GetFocus() == GetDlgItem (ID_BUTTON))....

However, I didn't check my old code, so...?Roll eyes | :rolleyes:

Have a nice day!
-Masaaki Onishi-
GeneralRe: Hummmm. Pin
Masaaki Onishi3-Apr-01 16:35
Masaaki Onishi3-Apr-01 16:35 
AnswerRe: How to get the button click message ??? Pin
PJ Arends3-Apr-01 10:23
professionalPJ Arends3-Apr-01 10:23 
QuestionDirectX 8 information??? Pin
t_hamel3-Apr-01 5:17
t_hamel3-Apr-01 5:17 
GeneralLoading a Word Document Pin
3-Apr-01 3:38
suss3-Apr-01 3:38 
GeneralRe: Loading a Word Document Pin
Masaaki Onishi3-Apr-01 16:49
Masaaki Onishi3-Apr-01 16:49 
GeneralRe: Loading a Word Document Pin
3-Apr-01 23:13
suss3-Apr-01 23:13 
GeneralHostNames Pin
Furer Alexander3-Apr-01 3:24
Furer Alexander3-Apr-01 3:24 
GeneralRe: HostNames Pin
Anders Molin3-Apr-01 9:00
professionalAnders Molin3-Apr-01 9:00 
GeneralVS C++ help needed Pin
3-Apr-01 1:31
suss3-Apr-01 1:31 
Generalgetting filetype description from _extension_ Pin
3-Apr-01 0:31
suss3-Apr-01 0:31 
GeneralRe: getting filetype description from _extension_ Pin
Rui Lopes3-Apr-01 1:19
Rui Lopes3-Apr-01 1:19 
GeneralRe: getting filetype description from _extension_ Pin
3-Apr-01 1:56
suss3-Apr-01 1:56 
GeneralRedistributing Shlwapi.dll Pin
Obliterator3-Apr-01 0:02
Obliterator3-Apr-01 0:02 
GeneralRe: Redistributing Shlwapi.dll Pin
3-Apr-01 3:28
suss3-Apr-01 3:28 
GeneralRe: Redistributing Shlwapi.dll Pin
Obliterator4-Apr-01 5:44
Obliterator4-Apr-01 5:44 
GeneralRe: Redistributing Shlwapi.dll Pin
Michael Martin4-Apr-01 16:25
professionalMichael Martin4-Apr-01 16:25 
GeneralRe: Redistributing Shlwapi.dll Pin
Obliterator5-Apr-01 4:19
Obliterator5-Apr-01 4:19 

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.