Click here to Skip to main content
15,909,332 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String^ problem Pin
Hamid_RT19-Oct-07 6:22
Hamid_RT19-Oct-07 6:22 
QuestionHow to create auto snap function on Images? Pin
TooShy2Talk17-Oct-07 14:23
TooShy2Talk17-Oct-07 14:23 
Questionmaking .dll file in VC++ from C code written in unix Pin
dfn17-Oct-07 12:49
dfn17-Oct-07 12:49 
AnswerRe: making .dll file in VC++ from C code written in unix Pin
Cedric Moonen17-Oct-07 20:14
Cedric Moonen17-Oct-07 20:14 
GeneralRe: making .dll file in VC++ from C code written in unix Pin
ThatsAlok17-Oct-07 20:57
ThatsAlok17-Oct-07 20:57 
GeneralRe: making .dll file in VC++ from C code written in unix Pin
jhwurmbach18-Oct-07 0:53
jhwurmbach18-Oct-07 0:53 
QuestionHow to add code to dynamically created button?? Pin
zarraza17-Oct-07 10:48
zarraza17-Oct-07 10:48 
AnswerRe: How to add code to dynamically created button?? Pin
Naveen17-Oct-07 15:52
Naveen17-Oct-07 15:52 
zarraza wrote:
don't know how to add my code to those buttons.


When a button is clicked the button will send a WM_COMMAND message to the parent and the wparam of that message will be having BN_CLICKED.

Suppose you created the button with id 1234, do the processing as follows

overied the oncommand function of the CFormview through class wizard. Then inside that function check whether the HIWORD is BN_CLICKED and LOWORD is 1234..
<br />
if( HIWORD( wParam ) == BN_CLICKED && LOWORD(wParam) == 1234 )<br />
{<br />
    AfxMessageBox( "Buttom is clicked" );<br />
} 





GeneralRe: How to add code to dynamically created button?? Pin
Roger Broomfield17-Oct-07 17:42
Roger Broomfield17-Oct-07 17:42 
AnswerRe: How to add code to dynamically created button?? Pin
ThatsAlok17-Oct-07 21:00
ThatsAlok17-Oct-07 21:00 
Questioncatching the memory using without initializing [modified] Pin
shahin namini17-Oct-07 9:49
shahin namini17-Oct-07 9:49 
AnswerRe: catching the memory using without initializing Pin
Nemanja Trifunovic17-Oct-07 9:55
Nemanja Trifunovic17-Oct-07 9:55 
GeneralRe: catching the memory using without initializing Pin
shahin namini17-Oct-07 10:16
shahin namini17-Oct-07 10:16 
AnswerRe: catching the memory using without initializing Pin
Chris Losinger17-Oct-07 10:17
professionalChris Losinger17-Oct-07 10:17 
GeneralRe: catching the memory using without initializing Pin
shahin namini17-Oct-07 10:37
shahin namini17-Oct-07 10:37 
QuestionRe: catching the memory using without initializing Pin
David Crow17-Oct-07 10:44
David Crow17-Oct-07 10:44 
GeneralRe: catching the memory using without initializing Pin
Chris Losinger17-Oct-07 10:59
professionalChris Losinger17-Oct-07 10:59 
AnswerRe: catching the memory using without initializing Pin
David Crow17-Oct-07 10:20
David Crow17-Oct-07 10:20 
GeneralRe: catching the memory using without initializing Pin
shahin namini17-Oct-07 10:40
shahin namini17-Oct-07 10:40 
Questioncallbacks in C++: member function pointers / objects Pin
elmendavies17-Oct-07 8:01
elmendavies17-Oct-07 8:01 
AnswerRe: callbacks in C++: member function pointers / objects Pin
Jim Crafton17-Oct-07 8:22
Jim Crafton17-Oct-07 8:22 
GeneralRe: callbacks in C++: member function pointers / objects Pin
elmendavies18-Oct-07 0:02
elmendavies18-Oct-07 0:02 
AnswerRe: callbacks in C++: member function pointers / objects Pin
Chris Losinger17-Oct-07 8:37
professionalChris Losinger17-Oct-07 8:37 
GeneralRe: callbacks in C++: member function pointers / objects Pin
elmendavies18-Oct-07 0:12
elmendavies18-Oct-07 0:12 
AnswerRe: callbacks in C++: member function pointers / objects Pin
Stephen Hewitt17-Oct-07 16:44
Stephen Hewitt17-Oct-07 16:44 

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.