Click here to Skip to main content
15,913,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Release file in Debug project Pin
Jose Lamas Rios1-Jul-05 3:28
Jose Lamas Rios1-Jul-05 3:28 
GeneralProblems faced while updating drivers in 2K. Pin
Member 100526830-Jun-05 21:08
Member 100526830-Jun-05 21:08 
QuestionStrange problem with my Client Server Application? Pin
arrya_amit30-Jun-05 21:05
arrya_amit30-Jun-05 21:05 
AnswerRe: Strange problem with my Client Server Application? Pin
GDavy30-Jun-05 21:12
GDavy30-Jun-05 21:12 
AnswerRe: Strange problem with my Client Server Application? Pin
ThatsAlok30-Jun-05 21:13
ThatsAlok30-Jun-05 21:13 
QuestionHow to programatically fill data in a dialog based UI Pin
PravinSingh30-Jun-05 21:05
PravinSingh30-Jun-05 21:05 
AnswerRe: How to programatically fill data in a dialog based UI Pin
ThatsAlok30-Jun-05 21:26
ThatsAlok30-Jun-05 21:26 
GeneralRe: How to programatically fill data in a dialog based UI Pin
PravinSingh1-Jul-05 2:04
PravinSingh1-Jul-05 2:04 
Thanks Alok, it works Smile | :)

I got the Handle to Remote Window and also to the buttons on it, but...

i) I'm not able to get control of the edit box (I searched for the button based on it's caption, but editboxes don't have a caption and i don't know what to give in the parameter lpszClassName).

ii) Sending BN_CLICKED message for the OK Button doesn't seem to work.

I'm sending you my code. Could you please figure out the problem:

CWnd* pClientWnd = NULL;<br />
pClientWnd = FindWindow(NULL, "Login");<br />
CWnd* pControl = new CWnd();<br />
HWND hWndOk = FindWindowEx((pClientWnd->m_hWnd), NULL, NULL, "&OK");<br />
pControl->Attach(hWndOk);<br />
pControl->EnableWindow(TRUE);<br />
pControl->PostMessage(BN_CLICKED);

GeneralRe: How to programatically fill data in a dialog based UI Pin
Jose Lamas Rios1-Jul-05 2:57
Jose Lamas Rios1-Jul-05 2:57 
GeneralRe: How to programatically fill data in a dialog based UI Pin
ThatsAlok1-Jul-05 18:59
ThatsAlok1-Jul-05 18:59 
GeneralRe: How to programatically fill data in a dialog based UI Pin
Jose Lamas Rios2-Jul-05 11:56
Jose Lamas Rios2-Jul-05 11:56 
GeneralRe: How to programatically fill data in a dialog based UI Pin
ThatsAlok3-Jul-05 18:05
ThatsAlok3-Jul-05 18:05 
Generala problem!!!! Pin
smartymanav30-Jun-05 20:58
smartymanav30-Jun-05 20:58 
GeneralRe: a problem!!!! Pin
Cedric Moonen30-Jun-05 21:02
Cedric Moonen30-Jun-05 21:02 
GeneralRe: a problem!!!! Pin
ThatsAlok30-Jun-05 21:06
ThatsAlok30-Jun-05 21:06 
GeneralRe: a problem!!!! Pin
Cedric Moonen30-Jun-05 21:12
Cedric Moonen30-Jun-05 21:12 
GeneralRe: a problem!!!! Pin
ThatsAlok30-Jun-05 21:02
ThatsAlok30-Jun-05 21:02 
GeneralRe: a problem!!!! Pin
khan++30-Jun-05 21:10
khan++30-Jun-05 21:10 
GeneralRe: a problem!!!! Pin
smartymanav30-Jun-05 21:03
smartymanav30-Jun-05 21:03 
GeneralRe: a problem!!!! Pin
smartymanav30-Jun-05 21:31
smartymanav30-Jun-05 21:31 
GeneralRe: a problem!!!! Pin
PJ Arends30-Jun-05 21:15
professionalPJ Arends30-Jun-05 21:15 
GeneralRe: a problem!!!! Pin
smartymanav30-Jun-05 21:32
smartymanav30-Jun-05 21:32 
Generaljavascript Pin
cnsathya30-Jun-05 20:11
susscnsathya30-Jun-05 20:11 
GeneralRe: javascript Pin
Jose Lamas Rios30-Jun-05 20:23
Jose Lamas Rios30-Jun-05 20:23 
GeneralEmbed Font Pin
Naveen_mah30-Jun-05 19:38
Naveen_mah30-Jun-05 19:38 

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.