Click here to Skip to main content
15,914,895 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Carlos Antollini26-Oct-01 6:54
Carlos Antollini26-Oct-01 6:54 
GeneralRe: (mfc) Checking a checkbox during CPropertyPage constructor Pin
Carlos Antollini26-Oct-01 6:56
Carlos Antollini26-Oct-01 6:56 
GeneralCMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
vhalik26-Oct-01 6:06
vhalik26-Oct-01 6:06 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
Fazlul Kabir26-Oct-01 6:36
Fazlul Kabir26-Oct-01 6:36 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
vhalik26-Oct-01 6:39
vhalik26-Oct-01 6:39 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
vhalik26-Oct-01 6:57
vhalik26-Oct-01 6:57 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
Fazlul Kabir26-Oct-01 7:03
Fazlul Kabir26-Oct-01 7:03 
GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
Fazlul Kabir26-Oct-01 7:40
Fazlul Kabir26-Oct-01 7:40 
Here is a quick solution for you.

Overide CMainFrame's ::ReCalcLayout() and add this

void CMainFrame::RecalcLayout(BOOL bNotify) 
{
	// TODO: Add your specialized code here and/or call the base class
	CFrameWnd::RecalcLayout(bNotify);

	CView* pView = GetActiveView();
	if(pView && pView->GetSafeHwnd())
	{
		CRect rect;
		pView->GetWindowRect(rect);
		ScreenToClient(rect);
		rect.InflateRect(2, 2);
		pView->MoveWindow(rect);
	}
}

This would take out the client edges nicely provided that you don't have any controlbars docked on the frame.

This is a quick and dirty solution. There could be other ways of doing this. I'll try to find other solution later.

// Fazlul


Get RadVC today! Play RAD in VC++
http://www.capitolsoft.com

GeneralRe: CMainFrame::PreCreateWindow(CREATESTRUCT& cs) Pin
vhalik26-Oct-01 7:50
vhalik26-Oct-01 7:50 
GeneralCritical Section problems... Pin
LukeV26-Oct-01 5:59
LukeV26-Oct-01 5:59 
GeneralRe: Critical Section problems... Pin
Joaquín M López Muñoz26-Oct-01 7:16
Joaquín M López Muñoz26-Oct-01 7:16 
GeneralRe: Critical Section problems... Pin
LukeV26-Oct-01 7:49
LukeV26-Oct-01 7:49 
GeneralRe: Critical Section problems... Pin
Joaquín M López Muñoz26-Oct-01 8:30
Joaquín M López Muñoz26-Oct-01 8:30 
GeneralRe: Critical Section problems... Pin
Tim Deveaux26-Oct-01 10:20
Tim Deveaux26-Oct-01 10:20 
GeneralRe: Critical Section problems... Pin
HintiFlo23-Jan-02 1:12
HintiFlo23-Jan-02 1:12 
QuestionHow to set a bitmap as a dialog background ? Pin
adara26-Oct-01 4:58
adara26-Oct-01 4:58 
AnswerRe: How to set a bitmap as a dialog background ? Pin
Joaquín M López Muñoz26-Oct-01 5:48
Joaquín M López Muñoz26-Oct-01 5:48 
Generalthanx Pin
adara26-Oct-01 12:19
adara26-Oct-01 12:19 
Generaloverload resolution in VC 6.0 Pin
Patrick D Owens26-Oct-01 4:46
Patrick D Owens26-Oct-01 4:46 
GeneralRe: overload resolution in VC 6.0 Pin
Chris Losinger26-Oct-01 4:55
professionalChris Losinger26-Oct-01 4:55 
GeneralRe: overload resolution in VC 6.0 Pin
Patrick D Owens26-Oct-01 5:16
Patrick D Owens26-Oct-01 5:16 
GeneralRe: overload resolution in VC 6.0 Pin
Joaquín M López Muñoz26-Oct-01 6:53
Joaquín M López Muñoz26-Oct-01 6:53 
GeneralRe: overload resolution in VC 6.0 Pin
Patrick D Owens26-Oct-01 9:16
Patrick D Owens26-Oct-01 9:16 
GeneralFilling CListCtrl from dll problem... Pin
26-Oct-01 4:39
suss26-Oct-01 4:39 
GeneralRe: Filling CListCtrl from dll problem... Pin
Joaquín M López Muñoz26-Oct-01 7:27
Joaquín M López Muñoz26-Oct-01 7:27 

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.