Click here to Skip to main content
15,898,746 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 7:30
Mark Salsbery4-Oct-07 7:30 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 11:30
Kiran Satish4-Oct-07 11:30 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 11:43
Mark Salsbery4-Oct-07 11:43 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish4-Oct-07 13:00
Kiran Satish4-Oct-07 13:00 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery4-Oct-07 13:09
Mark Salsbery4-Oct-07 13:09 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish5-Oct-07 7:33
Kiran Satish5-Oct-07 7:33 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery5-Oct-07 7:38
Mark Salsbery5-Oct-07 7:38 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish5-Oct-07 9:36
Kiran Satish5-Oct-07 9:36 
I am trying in this way and it still goes to the default button on that window that I created first.
I have three dialogs (main dialog, child dialog1, child dialog2), now I am trying to set focus onto dialog2 from dialog1 and also set the control to button4 on dialog2 and it always goes to button1 on dialog2 as soon as I set the focus on dialog2.
<br />
(parent->dialog2)->SetFocus();<br />
			CButton *Button;<br />
			Button=(CButton *)GetDlgItem(IDB_GRAB);<br />
			(parent->dialog2)->PostMessageA(WM_NEXTDLGCTL,Button->GetDlgCtrlID(),TRUE);


Is it correct??

-Pavan.

PKNT

GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery5-Oct-07 9:42
Mark Salsbery5-Oct-07 9:42 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish5-Oct-07 9:51
Kiran Satish5-Oct-07 9:51 
GeneralRe: Is there a way to switch focus?? Pin
Mark Salsbery5-Oct-07 10:08
Mark Salsbery5-Oct-07 10:08 
GeneralRe: Is there a way to switch focus?? Pin
Kiran Satish8-Oct-07 5:55
Kiran Satish8-Oct-07 5:55 
QuestionDeque using elements from a class Pin
PolarFuzz4-Oct-07 5:10
PolarFuzz4-Oct-07 5:10 
QuestionRe: Deque using elements from a class Pin
David Crow4-Oct-07 5:33
David Crow4-Oct-07 5:33 
AnswerRe: Deque using elements from a class [modified] Pin
George L. Jackson4-Oct-07 5:54
George L. Jackson4-Oct-07 5:54 
GeneralRe: Deque using elements from a class Pin
led mike4-Oct-07 6:20
led mike4-Oct-07 6:20 
GeneralRe: Deque using elements from a class Pin
George L. Jackson4-Oct-07 6:32
George L. Jackson4-Oct-07 6:32 
GeneralRe: Deque using elements from a class Pin
led mike4-Oct-07 7:20
led mike4-Oct-07 7:20 
AnswerRe: Deque using elements from a class Pin
led mike4-Oct-07 6:17
led mike4-Oct-07 6:17 
AnswerRe: Deque using elements from a class Pin
John R. Shaw4-Oct-07 12:24
John R. Shaw4-Oct-07 12:24 
GeneralRe: Deque using elements from a class Pin
PolarFuzz5-Oct-07 8:35
PolarFuzz5-Oct-07 8:35 
GeneralRe: Deque using elements from a class Pin
John R. Shaw5-Oct-07 21:57
John R. Shaw5-Oct-07 21:57 
GeneralRe: Deque using elements from a class Pin
PolarFuzz8-Oct-07 2:05
PolarFuzz8-Oct-07 2:05 
Questionwhat is the API that MS Office is calling to save a file under a different name ? Pin
carabutnicolae12344-Oct-07 5:07
carabutnicolae12344-Oct-07 5:07 
QuestionRe: what is the API that MS Office is calling to save a file under a different name ? Pin
David Crow4-Oct-07 5:34
David Crow4-Oct-07 5:34 

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.