How to create a sizeable dialog (under MFC)?
-
I have already an dialog which is sizeable. Now i have a problem with this dialog. The dialog contains a ListControl. Now i want to set the size of the ListControl in proportion to the dialog when i use the maximize button. Can anyone help me with this problem? p.s.: it would be fine when you can explain it to me under MFC and no ATL because i don`t undersand this. :(( greets J.J. :cool:
-
I have already an dialog which is sizeable. Now i have a problem with this dialog. The dialog contains a ListControl. Now i want to set the size of the ListControl in proportion to the dialog when i use the maximize button. Can anyone help me with this problem? p.s.: it would be fine when you can explain it to me under MFC and no ATL because i don`t undersand this. :(( greets J.J. :cool:
-
I have already an dialog which is sizeable. Now i have a problem with this dialog. The dialog contains a ListControl. Now i want to set the size of the ListControl in proportion to the dialog when i use the maximize button. Can anyone help me with this problem? p.s.: it would be fine when you can explain it to me under MFC and no ATL because i don`t undersand this. :(( greets J.J. :cool:
How about somthing like this? [code] // Resize the list control contained in the view to // fill the entire view when the view's window is // resized. CMyView is a CView derived class. void CMyDlg::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); // Resize list to fill the whole view. if(nType == SIZE_MAXIMIZED) m_List.MoveWindow (0, 0, cx, cy); } [/code]
-
How about somthing like this? [code] // Resize the list control contained in the view to // fill the entire view when the view's window is // resized. CMyView is a CView derived class. void CMyDlg::OnSize(UINT nType, int cx, int cy) { CView::OnSize(nType, cx, cy); // Resize list to fill the whole view. if(nType == SIZE_MAXIMIZED) m_List.MoveWindow (0, 0, cx, cy); } [/code]
-
Thank you for help! Maybe you can help me by an other problem!? I want to get and set the position/size of a ListControl do you know how dose it work? Thank´s J.J.