Click here to Skip to main content
16,007,443 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: debug build OK, release build fails Pin
tomc25-Sep-02 7:14
tomc25-Sep-02 7:14 
GeneralLoop Pin
Doug7725-Sep-02 6:30
sussDoug7725-Sep-02 6:30 
GeneralRe: Loop Pin
jmkhael25-Sep-02 6:33
jmkhael25-Sep-02 6:33 
Generalmodulus and double Pin
pnpfriend25-Sep-02 6:09
pnpfriend25-Sep-02 6:09 
GeneralRe: modulus and double Pin
jmkhael25-Sep-02 6:25
jmkhael25-Sep-02 6:25 
GeneralRe: modulus and double Pin
Todd Smith25-Sep-02 7:14
Todd Smith25-Sep-02 7:14 
GeneralNeed HELP! CommandBars removed! Pin
Daniel Strigl25-Sep-02 5:29
Daniel Strigl25-Sep-02 5:29 
GeneralSDI Form Resize Pin
Ruca25-Sep-02 5:26
Ruca25-Sep-02 5:26 
hi,
I am using a SDI FormView-derived Form. I am dynamically creating controls which are placed on the form.
I need to resize the vertical size of the form as I fill it. I have placed a scroll bar on the form.

I managed to do the following:
void CStocks: nSize(UINT nType, int cx, int cy)
{
CFormView: nSize(nType, cx, cy);
CRect txtRect, clientRect;

GetWindowRect(txtRect);
ScreenToClient(txtRect);

GetWindowRect(clientRect);

CStatic caramba[50];
CString g;

for (int i=0;i<50;i++)
{
g.Format("%d", i);
caramba[i].Create(g, WS_CHILD|WS_VISIBLE|SS_CENTER|WS_BORDER, CRect(10, i*10, 120, i*10+50), this);
txtRect.bottom += 50;
}
MoveWindow(txtRect);

As you can see I created quite a few objects just to test the scroll facility. The Scroll Bar appears but my Toolbar and Statusbar disappeared.

Can anyone help me with an example or correction of my errors.

Thanking you in anticipation.

Rui
GeneralRe: SDI Form Resize Pin
Joaquín M López Muñoz25-Sep-02 8:26
Joaquín M López Muñoz25-Sep-02 8:26 
GeneralMDI Problem!!!!!!!! Pin
MFC is the Best25-Sep-02 4:44
MFC is the Best25-Sep-02 4:44 
GeneralRe: MDI Problem!!!!!!!! Pin
jmkhael25-Sep-02 4:52
jmkhael25-Sep-02 4:52 
GeneralRe: MDI Problem!!!!!!!! Pin
MFC is the Best25-Sep-02 5:07
MFC is the Best25-Sep-02 5:07 
GeneralRe: MDI Problem!!!!!!!! Pin
Tomasz Sowinski25-Sep-02 5:15
Tomasz Sowinski25-Sep-02 5:15 
GeneralRe: MDI Problem!!!!!!!! Pin
MFC is the Best25-Sep-02 5:11
MFC is the Best25-Sep-02 5:11 
GeneralGeting a Controls ID from a HWND. Pin
Jawache25-Sep-02 4:38
Jawache25-Sep-02 4:38 
GeneralRe: Geting a Controls ID from a HWND. Pin
User 665825-Sep-02 4:54
User 665825-Sep-02 4:54 
GeneralRe: Geting a Controls ID from a HWND. Pin
Jawache25-Sep-02 5:08
Jawache25-Sep-02 5:08 
GeneralRe: Geting a Controls ID from a HWND. Pin
valikac25-Sep-02 10:58
valikac25-Sep-02 10:58 
GeneralSTL advice required Pin
User 988525-Sep-02 4:23
User 988525-Sep-02 4:23 
GeneralRe: STL advice required Pin
TyMatthews25-Sep-02 4:34
TyMatthews25-Sep-02 4:34 
GeneralRe: STL advice required Pin
User 988525-Sep-02 4:41
User 988525-Sep-02 4:41 
GeneralRe: STL advice required Pin
Lanny Thompson25-Sep-02 4:53
Lanny Thompson25-Sep-02 4:53 
GeneralRe: STL advice required Pin
User 988525-Sep-02 5:04
User 988525-Sep-02 5:04 
GeneralRe: STL advice required Pin
Lanny Thompson25-Sep-02 5:25
Lanny Thompson25-Sep-02 5:25 
GeneralRe: STL advice required Pin
TyMatthews25-Sep-02 6:43
TyMatthews25-Sep-02 6:43 

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.