Click here to Skip to main content
15,891,004 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralPrinting Bitmaps Pin
Sergio Batarce30-May-04 5:56
Sergio Batarce30-May-04 5:56 
GeneralRe: Printing Bitmaps Pin
Roger Allen1-Jun-04 5:12
Roger Allen1-Jun-04 5:12 
GeneralRe: Printing Bitmaps Pin
Sergio Batarce1-Jun-04 7:23
Sergio Batarce1-Jun-04 7:23 
GeneralCreating Excel File -- Autofit cells Pin
shultas30-May-04 4:04
shultas30-May-04 4:04 
GeneralRe: Creating Excel File -- Autofit cells Pin
f6430-May-04 8:19
f6430-May-04 8:19 
QuestionHTMLHelp: How to start with? Pin
JHAKAS30-May-04 3:24
JHAKAS30-May-04 3:24 
AnswerRe: HTMLHelp: How to start with? Pin
Ravi Bhavnani30-May-04 7:52
professionalRavi Bhavnani30-May-04 7:52 
Generalresize Pin
Anonymous30-May-04 2:49
Anonymous30-May-04 2:49 
in MainFrm.cpp
==============
BOOL CMainFrame::PreCreateWindow(CREATESTRUCT& cs)
{
if( !CFrameWnd::PreCreateWindow(cs) )
return FALSE;
cs.style = WS_OVERLAPPED | WS_CAPTION
| WS_BORDER | WS_SYSMENU
| WS_MINIMIZEBOX | WS_MAXIMIZEBOX | WS_THICKFRAME ;
cs.cy = 600;
cs.cx = 1000;
return TRUE;
}
void CMainFrame::OnGetMinMaxInfo(MINMAXINFO FAR* lpMMI)
{
POINT m_ptMinTrackSize;
m_ptMinTrackSize.x = 500;
m_ptMinTrackSize.y = 300;
lpMMI->ptMinTrackSize = m_ptMinTrackSize;
CFrameWnd::OnGetMinMaxInfo(lpMMI);
}

in ProgView.cpp
===============
pWnd = GetTopWindow();

for(pWnd = GetTopWindow(); pWnd;) {
pWnd->GetWindowRect(&Rect);
ScreenToClient(&Rect);
id = pWnd->GetDlgCtrlID( );
if ((id == IDC_1) || (id == IDC_2);
Rect.OffsetRect(dx,0);
Rect.right = Rect.right + dx / 2;
Rect.bottom= Rect.bottom + dy;
}
if ((id == IDC_3) || (id == IDC_4);
Rect.OffsetRect(0,dy);
}
//...
pWnd->MoveWindow(&Rect);
pWnd = pWnd->GetNextWindow();
}
in Prog.rc
==========
IDD_PROG_FORM DIALOG DISCARDABLE 0, 0, 600, 300
STYLE WS_CHILD | WS_THICKFRAME
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "List1",IDC_1,...
CONTROL "List1",IDC_2,...
CONTROL "",IDC_3,...
CTEXT "",IDC_4,...
END

I do not arrive has resources control on the window IDD_PROG_FORM:
A resize with mouse do not change the dimension of IDD_PROG_FORM and I have so " scroll bar " appear
When I reduce too much the main window.
Need of help thank you


GeneralGDI Gurus, Ellipses Pin
Abin30-May-04 2:12
Abin30-May-04 2:12 
GeneralRe: GDI Gurus, Ellipses Pin
Dominik Reichl30-May-04 4:55
Dominik Reichl30-May-04 4:55 
GeneralRe: GDI Gurus, Ellipses Pin
f6430-May-04 8:40
f6430-May-04 8:40 
GeneralType casting problem Pin
RickardIsraelsson30-May-04 2:11
RickardIsraelsson30-May-04 2:11 
GeneralRe: Type casting problem Pin
PJ Arends30-May-04 4:28
professionalPJ Arends30-May-04 4:28 
GeneralCreating simple text editor using CView as base Pin
haritadala29-May-04 23:05
haritadala29-May-04 23:05 
GeneralRe: Creating simple text editor using CView as base Pin
Pete Goodsall30-May-04 2:23
Pete Goodsall30-May-04 2:23 
GeneralRe: Creating simple text editor using CView as base Pin
haritadala30-May-04 3:35
haritadala30-May-04 3:35 
GeneralSome Questions about CHtmlView Pin
HIai29-May-04 18:21
HIai29-May-04 18:21 
GeneralMFC Container Application Pin
vishalmore29-May-04 17:58
vishalmore29-May-04 17:58 
GeneralHelp needed for CSocket Pin
sumon200229-May-04 17:43
sumon200229-May-04 17:43 
GeneralInitilize the socket Pin
laia30-May-04 8:22
laia30-May-04 8:22 
Questioncheck day of week? Pin
closecall29-May-04 16:25
closecall29-May-04 16:25 
AnswerRe: check day of week? Pin
PJ Arends30-May-04 5:18
professionalPJ Arends30-May-04 5:18 
GeneralScrollbar Control event handling Pin
ragpub29-May-04 16:21
ragpub29-May-04 16:21 
GeneralRe: Scrollbar Control event handling Pin
PJ Arends30-May-04 4:51
professionalPJ Arends30-May-04 4:51 
GeneralRe: Scrollbar Control event handling Pin
ragpub31-May-04 1:05
ragpub31-May-04 1:05 

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.