Click here to Skip to main content
15,921,169 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: MFC Dilogs Pin
namaskaaram3-Apr-05 23:42
namaskaaram3-Apr-05 23:42 
QuestionHow to retrieve the current parameter in DC Pin
LiYS3-Apr-05 16:53
LiYS3-Apr-05 16:53 
AnswerRe: How to retrieve the current parameter in DC Pin
ThatsAlok3-Apr-05 18:17
ThatsAlok3-Apr-05 18:17 
GeneralRe: How to retrieve the current parameter in DC Pin
LiYS3-Apr-05 18:25
LiYS3-Apr-05 18:25 
GeneralRe: How to retrieve the current parameter in DC Pin
ThatsAlok3-Apr-05 18:38
ThatsAlok3-Apr-05 18:38 
Generalresize a CFormView programmatically Pin
Harold Bamford3-Apr-05 16:50
Harold Bamford3-Apr-05 16:50 
GeneralRe: resize a CFormView programmatically Pin
KaЯl3-Apr-05 22:24
KaЯl3-Apr-05 22:24 
GeneralRe: resize a CFormView programmatically Pin
Harold Bamford4-Apr-05 4:47
Harold Bamford4-Apr-05 4:47 
K(arl) wrote:
As I understand it, you want to force the size of your application. I would do so by resizing the MainFrame object, using CMainFrame::SetWindowPos. Then I would catch the WM_SIZE message in the Form View to handle controls size and position changes.

Yes, I want to set the size of the application. I've tried using SetWindowPos(), but it works no better.

Catching the OnSize stuff would not help as the control has already been sized; there is nothing to be done. Manually (or rather programatically) adjusting the scroll bar is something I would like to avoid.

For now, I am using a kludge by setting the original size of the Formview and the control that gets resized (in the visual dialog editor) to something absurdly small. Then when I load up the control and resize it, I can also resize the MainFrame and it seems to work. No annoying, unneeded scrollbars appear. But this seems like an inelegant solution. Surely there is a better way!
GeneralRe: resize a CFormView programmatically Pin
KaЯl4-Apr-05 5:34
KaЯl4-Apr-05 5:34 
GeneralRe: resize a CFormView programmatically Pin
Harold Bamford4-Apr-05 5:36
Harold Bamford4-Apr-05 5:36 
GeneralRe: resize a CFormView programmatically Pin
Harold Bamford6-Apr-05 6:33
Harold Bamford6-Apr-05 6:33 
GeneralThe needle is right over here, under the hay. Pin
LordTygger3-Apr-05 14:57
LordTygger3-Apr-05 14:57 
GeneralRe: The needle is right over here, under the hay. Pin
Christian Graus3-Apr-05 15:24
protectorChristian Graus3-Apr-05 15:24 
GeneralRe: The needle is right over here, under the hay. Pin
LordTygger3-Apr-05 15:29
LordTygger3-Apr-05 15:29 
GeneralRe: The needle is right over here, under the hay. Pin
Christian Graus3-Apr-05 15:32
protectorChristian Graus3-Apr-05 15:32 
Questionhow to show the checkbox in the ListCtrl with ICON style? Pin
lowiq3-Apr-05 14:54
lowiq3-Apr-05 14:54 
Questionhow to use SendMessage for character at '\x080' position of current font. Pin
kristna3-Apr-05 14:08
kristna3-Apr-05 14:08 
QuestionCListCtrl with more than 260 characters? Pin
DanYELL3-Apr-05 10:35
DanYELL3-Apr-05 10:35 
GeneralSmart Tag for Rich Edit of Outlook email viewer Pin
Rajeev K Srivastava3-Apr-05 9:36
Rajeev K Srivastava3-Apr-05 9:36 
GeneralMFC Multithread question Pin
CNewbie3-Apr-05 9:30
CNewbie3-Apr-05 9:30 
GeneralRe: MFC Multithread question Pin
Paul Steane3-Apr-05 19:11
Paul Steane3-Apr-05 19:11 
GeneralPlease help me! Pin
dSolariuM3-Apr-05 9:04
dSolariuM3-Apr-05 9:04 
GeneralRe: Please help me! Pin
ThatsAlok3-Apr-05 18:51
ThatsAlok3-Apr-05 18:51 
GeneralC++ convert numbers to words Pin
supaman198813-Apr-05 8:44
supaman198813-Apr-05 8:44 
GeneralRe: C++ convert numbers to words Pin
David Crow4-Apr-05 3:09
David Crow4-Apr-05 3:09 

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.