Click here to Skip to main content
15,887,892 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to run an exe file. [modified] Pin
Exelioindia24-Sep-07 0:22
Exelioindia24-Sep-07 0:22 
GeneralRe: How to run an exe file. Pin
David Crow24-Sep-07 3:14
David Crow24-Sep-07 3:14 
AnswerRe: How to run an exe file. Pin
David Crow24-Sep-07 3:13
David Crow24-Sep-07 3:13 
Questiontry-catch handling Pin
Mary Chennai23-Sep-07 22:41
Mary Chennai23-Sep-07 22:41 
AnswerRe: try-catch handling Pin
Russell'23-Sep-07 23:08
Russell'23-Sep-07 23:08 
AnswerRe: try-catch handling [modified] Pin
nbugalia23-Sep-07 23:29
nbugalia23-Sep-07 23:29 
GeneralRe: try-catch handling Pin
Signal-926-Sep-07 15:18
Signal-926-Sep-07 15:18 
QuestionProblem by resizing CFormView derived class Pin
Nelek23-Sep-07 22:31
protectorNelek23-Sep-07 22:31 
Hi,

I have a little Problem with a CFormView derived class. I am now using the CChildFrame to determine the size of the window by creating a new View dinamically. It works good, but now I have a little problem.

The new CFormView I'm adding has a lot of controls (All CEdits) with writing protection to give some information. The number of CEdits can be [1, 24] (both inclusive). I want to make the view-frame to have just the needed size and here comes the problem.

The frame is resized as I want to the size that has to be shown. But the surface of the CFormView is keeping the size it has in the resource editor (as the needed elements were 24), so scrollbars appear although the elements in the non visible area are hidden with ShowWindow (FALSE);


So, the question is... how can I change the size of the formular to adjust it to the size of the frame? I don't want my visible controls to be affected (compressed or something like that). Just the opposite of ResizeParentToFit (...) that makes changes in the frame to fit the view, but avoiding effects like SetScaleToFit (...) because the controls change the size.



Greetings.

--------
M.D.V.

If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about?

Help me to understand what I'm saying, and I'll explain it better to you

Wink | ;)

AnswerA Bypass founded, but still curious Pin
Nelek23-Sep-07 23:12
protectorNelek23-Sep-07 23:12 
Questioncant open d3d9.h file Pin
vasu_ever23-Sep-07 21:56
professionalvasu_ever23-Sep-07 21:56 
AnswerRe: cant open d3d9.h file Pin
Cedric Moonen23-Sep-07 22:02
Cedric Moonen23-Sep-07 22:02 
QuestionRe: cant open d3d9.h file Pin
David Crow24-Sep-07 3:16
David Crow24-Sep-07 3:16 
AnswerRe: cant open d3d9.h file Pin
Hamid_RT24-Sep-07 3:42
Hamid_RT24-Sep-07 3:42 
QuestionShellExecute function Pin
AnayKulkarni23-Sep-07 21:26
AnayKulkarni23-Sep-07 21:26 
QuestionRe: ShellExecute function Pin
Rajesh R Subramanian23-Sep-07 21:30
professionalRajesh R Subramanian23-Sep-07 21:30 
AnswerRe: ShellExecute function Pin
Waldermort23-Sep-07 21:30
Waldermort23-Sep-07 21:30 
AnswerRe: ShellExecute function Pin
Iain Clarke, Warrior Programmer23-Sep-07 22:16
Iain Clarke, Warrior Programmer23-Sep-07 22:16 
QuestionHow to turn off some softwares's auto run? Pin
kcynic23-Sep-07 21:22
kcynic23-Sep-07 21:22 
AnswerRe: How to turn off some softwares's auto run? Pin
_AnsHUMAN_ 23-Sep-07 21:55
_AnsHUMAN_ 23-Sep-07 21:55 
GeneralRe: How to turn off some softwares's auto run? Pin
kcynic23-Sep-07 22:56
kcynic23-Sep-07 22:56 
AnswerRe: How to turn off some softwares's auto run? Pin
BadKarma23-Sep-07 22:05
BadKarma23-Sep-07 22:05 
GeneralRe: How to turn off some softwares's auto run? Pin
kcynic23-Sep-07 22:56
kcynic23-Sep-07 22:56 
AnswerRe: How to turn off some softwares's auto run? Pin
Iain Clarke, Warrior Programmer23-Sep-07 22:18
Iain Clarke, Warrior Programmer23-Sep-07 22:18 
GeneralRe: How to turn off some softwares's auto run? Pin
kcynic23-Sep-07 22:55
kcynic23-Sep-07 22:55 
QuestionRe: How to turn off some softwares's auto run? Pin
David Crow24-Sep-07 3:21
David Crow24-Sep-07 3:21 

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.