Click here to Skip to main content
15,902,888 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: GDI+ - Debug Build Pin
Ed Gadziemski3-Jun-02 11:28
professionalEd Gadziemski3-Jun-02 11:28 
GeneralGDI + - Scan Line Order Pin
AJ1232-Jun-02 20:46
AJ1232-Jun-02 20:46 
GeneralRe: GDI + - Scan Line Order Pin
Paul M Watt2-Jun-02 21:04
mentorPaul M Watt2-Jun-02 21:04 
GeneralOne more thing Pin
Paul M Watt2-Jun-02 21:06
mentorPaul M Watt2-Jun-02 21:06 
GeneralCOM+ threading Pin
2-Jun-02 20:40
suss2-Jun-02 20:40 
GeneralFocus Pin
Mazdak2-Jun-02 19:34
Mazdak2-Jun-02 19:34 
GeneralRe: Focus Pin
Paul M Watt2-Jun-02 19:46
mentorPaul M Watt2-Jun-02 19:46 
GeneralRe: Focus Pin
Mazdak2-Jun-02 21:24
Mazdak2-Jun-02 21:24 
Thank for reply kilowatt.

kilowatt wrote:
, you can call GetForegroundWindow to get a handle to the window with which the user is currently working then associate your threads message queue with that window by calling AttachThreadInput. THen you will be able to successfully call GetFocus on that window and get the handle of the control with the focus.

I can't understand one thing,when I use GetForegroundWindow to get the handle to the window that user is currently working then whats the need for GetFocus?

Mazy

"The more I search, the more my need
For you,
The more I bless, the more I bleed
For you."The Outlaw Torn-Metallica

GeneralRe: Focus Pin
Paul M Watt2-Jun-02 21:45
mentorPaul M Watt2-Jun-02 21:45 
GeneralRe: Focus Pin
Mazdak2-Jun-02 22:05
Mazdak2-Jun-02 22:05 
GeneralRe: Focus Pin
Mazdak2-Jun-02 22:32
Mazdak2-Jun-02 22:32 
QuestionChanging fonts of my controls at once but how? Pin
Atilla Selem2-Jun-02 19:23
Atilla Selem2-Jun-02 19:23 
AnswerRe: Changing fonts of my controls at once but how? Pin
Ed Gadziemski3-Jun-02 11:32
professionalEd Gadziemski3-Jun-02 11:32 
GeneralBasic GDI question Pin
Nish Nishant2-Jun-02 19:10
sitebuilderNish Nishant2-Jun-02 19:10 
GeneralRe: Basic GDI question [found it] Pin
Nish Nishant2-Jun-02 19:15
sitebuilderNish Nishant2-Jun-02 19:15 
GeneralRe: Basic GDI question [found it] Pin
Paul M Watt2-Jun-02 19:42
mentorPaul M Watt2-Jun-02 19:42 
GeneralRe: Basic GDI question [found it] Pin
Nish Nishant2-Jun-02 19:56
sitebuilderNish Nishant2-Jun-02 19:56 
GeneralRe: Basic GDI question [found it] Pin
Paul M Watt2-Jun-02 20:16
mentorPaul M Watt2-Jun-02 20:16 
GeneralRe: Basic GDI question [found it] Pin
Nish Nishant2-Jun-02 20:23
sitebuilderNish Nishant2-Jun-02 20:23 
GeneralRe: Basic GDI question Pin
Mike Nordell3-Jun-02 23:04
Mike Nordell3-Jun-02 23:04 
GeneralRe: Basic GDI question Pin
Nish Nishant3-Jun-02 23:18
sitebuilderNish Nishant3-Jun-02 23:18 
QuestionHow telling Windows I'm idle in message loop? Pin
2-Jun-02 18:38
suss2-Jun-02 18:38 
AnswerRe: How telling Windows I'm idle in message loop? Pin
Michael Dunn2-Jun-02 18:39
sitebuilderMichael Dunn2-Jun-02 18:39 
GeneralRe: How telling Windows I'm idle in message loop? Pin
2-Jun-02 18:46
suss2-Jun-02 18:46 
GeneralRe: How telling Windows I'm idle in message loop? Pin
Paul M Watt2-Jun-02 19:49
mentorPaul M Watt2-Jun-02 19:49 

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.