Click here to Skip to main content
15,897,518 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: To DropDown A ComboBox programmatically Pin
mikobi1-Feb-07 19:14
mikobi1-Feb-07 19:14 
AnswerRe: To DropDown A ComboBox programmatically Pin
Newbie009-Feb-07 8:22
Newbie009-Feb-07 8:22 
QuestionEnumerated types Pin
Jay031-Feb-07 4:04
Jay031-Feb-07 4:04 
AnswerRe: Enumerated types Pin
Roger Stoltz1-Feb-07 4:10
Roger Stoltz1-Feb-07 4:10 
AnswerRe: Enumerated types Pin
toxcct1-Feb-07 4:12
toxcct1-Feb-07 4:12 
AnswerRe: Enumerated types Pin
Jay031-Feb-07 4:33
Jay031-Feb-07 4:33 
QuestionTo Click on an button programmatically Pin
mikobi1-Feb-07 3:28
mikobi1-Feb-07 3:28 
AnswerRe: To Click on an button programmatically [modified] Pin
Roger Stoltz1-Feb-07 3:40
Roger Stoltz1-Feb-07 3:40 
I guess the answers you got in your previous thread here[^] didn't help you.


mikobi wrote:
automatically there is a click on my button to confirm the result


What do you mean by "automatically"?
You have to write code that verifies that the contents of the two edit controls are the same.

If the ID of your button equals IDC_SHOW, then you could "simulate" a click on the button by sending or posting a WM_COMMAND message to the window that contains the button, like this:
PostMessage( WM_COMMAND, MAKELONG( IDC_SHOW, BN_CLICKED ) );


-- modified at 9:49 Thursday 1st February, 2007
Added code example.


"It's supposed to be hard, otherwise anybody could do it!" - selfquote

GeneralRe: To Click on an button programmatically Pin
mikobi1-Feb-07 4:09
mikobi1-Feb-07 4:09 
GeneralRe: To Click on an button programmatically Pin
Roger Stoltz1-Feb-07 4:17
Roger Stoltz1-Feb-07 4:17 
GeneralRe: To Click on an button programmatically Pin
mikobi1-Feb-07 4:29
mikobi1-Feb-07 4:29 
GeneralRe: To Click on an button programmatically Pin
Hamid_RT1-Feb-07 20:54
Hamid_RT1-Feb-07 20:54 
QuestionRe: To Click on an button programmatically Pin
David Crow1-Feb-07 4:01
David Crow1-Feb-07 4:01 
Questiongetch() problem Pin
sachin ahuja1-Feb-07 3:03
sachin ahuja1-Feb-07 3:03 
AnswerRe: getch() problem Pin
jhwurmbach1-Feb-07 3:05
jhwurmbach1-Feb-07 3:05 
GeneralRe: getch() problem Pin
sachin ahuja1-Feb-07 4:12
sachin ahuja1-Feb-07 4:12 
GeneralRe: getch() problem Pin
toxcct1-Feb-07 4:14
toxcct1-Feb-07 4:14 
GeneralRe: getch() problem [modified] Pin
jhwurmbach1-Feb-07 5:23
jhwurmbach1-Feb-07 5:23 
GeneralRe: getch() problem Pin
sachin ahuja1-Feb-07 17:34
sachin ahuja1-Feb-07 17:34 
GeneralRe: getch() problem Pin
jhwurmbach1-Feb-07 21:50
jhwurmbach1-Feb-07 21:50 
GeneralRe: getch() problem Pin
sachin ahuja5-Feb-07 1:29
sachin ahuja5-Feb-07 1:29 
GeneralGood! Pin
jhwurmbach5-Feb-07 4:54
jhwurmbach5-Feb-07 4:54 
Questionuse Unicode DLL to non unicode application Pin
Atul231-Feb-07 2:29
Atul231-Feb-07 2:29 
AnswerRe: use Unicode DLL to non unicode application Pin
Hamid_RT1-Feb-07 20:55
Hamid_RT1-Feb-07 20:55 
Questionopen program while boot windows Pin
Max++1-Feb-07 2:22
Max++1-Feb-07 2:22 

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.