Click here to Skip to main content
15,923,845 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: message handling for a popup window [modified] Pin
Rajkumar R28-Apr-08 4:00
Rajkumar R28-Apr-08 4:00 
GeneralRe: message handling for a popup window Pin
misha_grewal28-Apr-08 19:12
misha_grewal28-Apr-08 19:12 
GeneralRe: message handling for a popup window [modified] Pin
Rajkumar R28-Apr-08 20:10
Rajkumar R28-Apr-08 20:10 
Questioncan anybody tell me where a static variable get stored in memory Pin
Deepu Antony27-Apr-08 23:36
Deepu Antony27-Apr-08 23:36 
AnswerRe: can anybody tell me where a static variable get stored in memory Pin
Naveen28-Apr-08 0:04
Naveen28-Apr-08 0:04 
GeneralCode behind ::SetFocus(m_hWndFocus) Pin
baerten27-Apr-08 23:24
baerten27-Apr-08 23:24 
GeneralRe: Code behind ::SetFocus(m_hWndFocus) Pin
Saurabh.Garg27-Apr-08 23:38
Saurabh.Garg27-Apr-08 23:38 
AnswerRe: Code behind ::SetFocus(m_hWndFocus) [modified] Pin
baerten28-Apr-08 1:17
baerten28-Apr-08 1:17 
Many thanks for you help!

Sure, in ::SetFocus isn't a bug, but maybe i can see why it doesn't accept my control.

I have the following action:

A View into a frame has some textboxes and a "self-created*" Grid.
If i hit a button a thread searches the elements and displayes all into the Grid.
If i hit ENTER on the Grid, i post a message wich creates a new View and switches
the view of the frame with this new view.
In the second view i have the possibility to hit ESCAPE and re-switch the first view on the frame.
So i went back to the first view, but the focus isn't no more on the Grid (where i left) but it's on
a textbox...

During i switch the view of the frame i call also a NewView->SetFocus() to set the Focus on the actual view of the frame...

If i set the m_hWndFocus manually on the Grids-Handler the ::SetFocus(m_hWndFocus) don't affect it
and sets the focus anyway on the textbox.

Big thanks for any help Smile | :)


* = not with the ressource designer, but with "new" and "Create(...)"



Edit:

OK, i find the bad code ...
It was a part of code which is running good for (A) and goes wrong with (B)

Thanks anyway Wink | ;)

modified on Monday, April 28, 2008 9:51 AM

Questionhow to find handle of a window(Hwnd) belongs to particular application? Pin
Super Hornet27-Apr-08 23:19
Super Hornet27-Apr-08 23:19 
AnswerRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
Saurabh.Garg27-Apr-08 23:31
Saurabh.Garg27-Apr-08 23:31 
GeneralRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
Super Hornet28-Apr-08 0:09
Super Hornet28-Apr-08 0:09 
QuestionRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
CPallini28-Apr-08 0:18
mveCPallini28-Apr-08 0:18 
GeneralRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
Super Hornet28-Apr-08 0:22
Super Hornet28-Apr-08 0:22 
GeneralRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
CPallini28-Apr-08 0:31
mveCPallini28-Apr-08 0:31 
GeneralRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
Super Hornet28-Apr-08 0:36
Super Hornet28-Apr-08 0:36 
GeneralRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
CPallini28-Apr-08 0:50
mveCPallini28-Apr-08 0:50 
GeneralRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
Saurabh.Garg28-Apr-08 0:49
Saurabh.Garg28-Apr-08 0:49 
AnswerRe: how to find handle of a window(Hwnd) belongs to particular application? Pin
Hamid_RT29-Apr-08 1:46
Hamid_RT29-Apr-08 1:46 
GeneralPostMessage Mouse clicks [modified] Pin
KarlWF27-Apr-08 23:04
KarlWF27-Apr-08 23:04 
AnswerRe: PostMessage Mouse clicks Pin
James R. Twine28-Apr-08 1:37
James R. Twine28-Apr-08 1:37 
GeneralRe: PostMessage Mouse clicks Pin
KarlWF28-Apr-08 16:41
KarlWF28-Apr-08 16:41 
GeneralRe: PostMessage Mouse clicks Pin
Rajkumar R28-Apr-08 5:09
Rajkumar R28-Apr-08 5:09 
Questionfont problem in vc++ edit control Pin
trioum27-Apr-08 22:04
trioum27-Apr-08 22:04 
GeneralRe: font problem in vc++ edit control Pin
CPallini27-Apr-08 23:11
mveCPallini27-Apr-08 23:11 
GeneralRe: font problem in vc++ edit control Pin
trioum28-Apr-08 0:02
trioum28-Apr-08 0:02 

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.