Click here to Skip to main content
15,895,538 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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
Generalcode for decompression and compression JPEG file Pin
jitwadee27-Jun-04 23:17
jitwadee27-Jun-04 23:17 
GeneralRe: code for decompression and compression JPEG file Pin
User 665827-Jun-04 23:56
User 665827-Jun-04 23:56 
QuestionHow To read an exe application from VC++6.0 Pin
karhea27-Jun-04 22:39
karhea27-Jun-04 22:39 
AnswerRe: How To read an exe application from VC++6.0 Pin
David Crow28-Jun-04 2:51
David Crow28-Jun-04 2:51 
GeneralRe: How To read an exe application from VC++6.0 Pin
karhea28-Jun-04 18:00
karhea28-Jun-04 18:00 
GeneralRe: How To read an exe application from VC++6.0 Pin
David Crow29-Jun-04 2:50
David Crow29-Jun-04 2:50 
Generaldialog box as part of the main window Pin
udi444427-Jun-04 22:33
udi444427-Jun-04 22:33 
GeneralRe: dialog box as part of the main window Pin
John R. Shaw28-Jun-04 19:00
John R. Shaw28-Jun-04 19:00 
GeneralDetecting Mouse Movements Across an IE Control Pin
achimera27-Jun-04 22:30
achimera27-Jun-04 22:30 
GeneralRe: Detecting Mouse Movements Across an IE Control Pin
Rama Krishna Vavilala25-Apr-06 17:16
Rama Krishna Vavilala25-Apr-06 17:16 
GeneralRe: Detecting Mouse Movements Across an IE Control Pin
achimera26-Apr-06 9:50
achimera26-Apr-06 9:50 
GeneralRe: Detecting Mouse Movements Across an IE Control Pin
Shog925-Apr-06 23:38
sitebuilderShog925-Apr-06 23:38 
GeneralTab Order suddenly began going backwards Pin
ohadp27-Jun-04 22:23
ohadp27-Jun-04 22:23 
GeneralRE: How to get 1394 Fireware GUID in windows Pin
HansonDavid27-Jun-04 22:17
HansonDavid27-Jun-04 22:17 
GeneralRe: RE: How to get 1394 Fireware GUID in windows Pin
Henry miller28-Jun-04 3:05
Henry miller28-Jun-04 3:05 
Generalquestion about matlab Pin
ffredoux27-Jun-04 22:15
ffredoux27-Jun-04 22:15 
GeneralCovert number to string Pin
Anonymous27-Jun-04 22:02
Anonymous27-Jun-04 22: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.