Click here to Skip to main content
15,918,404 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: A pixel from another program... Pin
Marcello28-Jun-04 8:58
Marcello28-Jun-04 8:58 
GeneralRe: A pixel from another program... Pin
David Crow28-Jun-04 9:09
David Crow28-Jun-04 9:09 
GeneralRe: A pixel from another program... Pin
Marcello28-Jun-04 8:16
Marcello28-Jun-04 8:16 
GeneralList box control Pin
Pazzuzu28-Jun-04 0:45
Pazzuzu28-Jun-04 0:45 
GeneralRe: List box control Pin
Peter Mares28-Jun-04 1:02
Peter Mares28-Jun-04 1:02 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 1:13
Pazzuzu28-Jun-04 1:13 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 1:15
Pazzuzu28-Jun-04 1:15 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 2:11
*Dreamz28-Jun-04 2:11 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 2:46
Pazzuzu28-Jun-04 2:46 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 2:58
*Dreamz28-Jun-04 2:58 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 3:10
Pazzuzu28-Jun-04 3:10 
GeneralRe: List box control Pin
David Crow28-Jun-04 3:20
David Crow28-Jun-04 3:20 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 3:21
Pazzuzu28-Jun-04 3:21 
GeneralRe: List box control Pin
*Dreamz28-Jun-04 3:35
*Dreamz28-Jun-04 3:35 
GeneralRe: List box control Pin
Peter Mares28-Jun-04 7:55
Peter Mares28-Jun-04 7:55 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 19:52
Pazzuzu28-Jun-04 19:52 
GeneralRe: List box control Pin
Pazzuzu28-Jun-04 19:53
Pazzuzu28-Jun-04 19:53 
GeneralRe: List box control Pin
David Crow28-Jun-04 2:46
David Crow28-Jun-04 2:46 
GeneralAny Body Know abt SmartCard Api's Pin
ThatsAlok28-Jun-04 0:37
ThatsAlok28-Jun-04 0:37 
GeneralRe: Any Body Know abt SmartCard Api's Pin
GermanGeorge1-Jul-04 2:32
GermanGeorge1-Jul-04 2:32 
GeneralDebug with .NET 2003 Pin
Jerome Conus27-Jun-04 23:31
Jerome Conus27-Jun-04 23:31 
GeneralRe: Debug with .NET 2003 Pin
Antony M Kancidrowski28-Jun-04 0:14
Antony M Kancidrowski28-Jun-04 0:14 
GeneralRe: Debug with .NET 2003 Pin
Jerome Conus28-Jun-04 0:46
Jerome Conus28-Jun-04 0:46 
QuestionHow to reposition Modeless Dialog box on resizing application window Pin
Arun AC27-Jun-04 23:22
Arun AC27-Jun-04 23:22 
AnswerRe: How to reposition Modeless Dialog box on resizing application window Pin
Peter Mares28-Jun-04 0:58
Peter Mares28-Jun-04 0:58 
If my understanding of your problem is correct, you are trying to use a modeless dialog to look as if its a "pane" within your application. If this is correct, read on:

1. Make the dialog a CHILD dialog
2. In the parent window, handle the WM_SIZE message and then merely resize the child dialog.

For example (a WTL eg):
<br />
void OnSize(UINT uiCode, CSize sz)<br />
{<br />
  CRect rect;<br />
<br />
  GetClientRect(&rect);<br />
  if ( ::IsWindow(m_MyChildDialog.m_hWnd) )<br />
  {<br />
    // do some manipulation on the rect if needed...<br />
    rect.DeflateRect(10,10,10,10); // here I'm just decreasing the overall size of the rect<br />
    m_MyChildDialog.MoveWindow(&rect);<br />
  }<br />
}<br />


That should be all you need to do.
Let me know if I've missed your question completely.

Cheers,
Peter



controlSHIFT
[Glossary Manager] [AfterThought Backup Lite]

All good things were meant to be improved

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.