Click here to Skip to main content
16,011,685 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: please help Pin
rajeshvv3-Aug-05 4:14
rajeshvv3-Aug-05 4:14 
GeneralRe: please help Pin
Marc Soleda3-Aug-05 4:29
Marc Soleda3-Aug-05 4:29 
QuestionPossible? Injection of a CWndEx-Class in MFC-structure? Pin
ClockDivider3-Aug-05 1:49
ClockDivider3-Aug-05 1:49 
AnswerRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
viveking3-Aug-05 2:38
sussviveking3-Aug-05 2:38 
AnswerRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
GKarRacer3-Aug-05 6:07
GKarRacer3-Aug-05 6:07 
GeneralRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
ClockDivider3-Aug-05 7:34
ClockDivider3-Aug-05 7:34 
GeneralRe: Possible? Injection of a CWndEx-Class in MFC-structure? Pin
GKarRacer3-Aug-05 8:31
GKarRacer3-Aug-05 8:31 
GeneralClient rect mapping confusion Pin
Cpt Rick3-Aug-05 1:24
Cpt Rick3-Aug-05 1:24 
This has always been one of those areas I get completely confused in - maybe somebody can set me straight...

I use a lot of "overlay" modeless dialogs on other dialogs (add extra functions, etc.), and I can get them to work fine, until the screen resolution is changed, then they don't match. I've tried lots of combos of ClientToScreen, etc., but no luck so far - heres the code I generally use:

// Modeless dialog #1 (which is itself an overlay on main dialog).
CRect rc;
GetWindowRect(&rc);
ClientToScreen(&rc);

// m_EQS is the overlay on the overlay.
m_EQS->SetWindowPos(&wndTop, rc.left+355, rc.top-5, 0, 0, SWP_NOSIZE);
m_EQS->ShowWindow(TRUE);

This works fine, until the screen resolution changes, then the overlay window is somewhere else where it should not be. Usually on top of a different window.

Please help a tired old programmer, who apparently has a pea brain when it comes to coordinate mapping Smile | :)

GeneralRe: Client rect mapping confusion Pin
Jose Lamas Rios3-Aug-05 3:12
Jose Lamas Rios3-Aug-05 3:12 
GeneralRe: Client rect mapping confusion Pin
Cpt Rick3-Aug-05 5:38
Cpt Rick3-Aug-05 5:38 
GeneralRe: Client rect mapping confusion Pin
Jose Lamas Rios3-Aug-05 6:13
Jose Lamas Rios3-Aug-05 6:13 
GeneralRe: Client rect mapping confusion Pin
Cpt Rick3-Aug-05 7:52
Cpt Rick3-Aug-05 7:52 
GeneralTreeView Control Pin
Nishad S3-Aug-05 1:16
Nishad S3-Aug-05 1:16 
GeneralRe: TreeView Control Pin
John Ulvr3-Aug-05 4:34
John Ulvr3-Aug-05 4:34 
GeneralRe: TreeView Control Pin
GKarRacer3-Aug-05 8:42
GKarRacer3-Aug-05 8:42 
GeneralSending data / message from a hook dll to a thread in a different application Pin
Vaibhav Sanghavi3-Aug-05 1:11
Vaibhav Sanghavi3-Aug-05 1:11 
GeneralRe: Sending data / message from a hook dll to a thread in a different application Pin
Blake Miller3-Aug-05 10:41
Blake Miller3-Aug-05 10:41 
GeneralUser Interfce Thread from a console application Pin
Vaibhav Sanghavi3-Aug-05 0:59
Vaibhav Sanghavi3-Aug-05 0:59 
GeneralConsole application on sending message Pin
Member 21610043-Aug-05 0:43
Member 21610043-Aug-05 0:43 
GeneralRe: Console application on sending message Pin
Nish Nishant3-Aug-05 0:54
sitebuilderNish Nishant3-Aug-05 0:54 
GeneralRe: Console application on sending message Pin
Member 21610044-Aug-05 17:29
Member 21610044-Aug-05 17:29 
GeneralGetting install directory of my executable Pin
retro_coder3-Aug-05 0:37
retro_coder3-Aug-05 0:37 
GeneralRe: Getting install directory of my executable Pin
Nish Nishant3-Aug-05 0:55
sitebuilderNish Nishant3-Aug-05 0:55 
GeneralSortItems ClistCtrl Pin
Halawlaws2-Aug-05 23:55
Halawlaws2-Aug-05 23:55 
GeneralRe: SortItems ClistCtrl Pin
Eytukan3-Aug-05 0:28
Eytukan3-Aug-05 0:28 

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.