Click here to Skip to main content
15,888,610 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: detect memory leak Pin
Alan Balkany25-Aug-11 5:07
Alan Balkany25-Aug-11 5:07 
AnswerRe: detect memory leak Pin
Pravin Patil, Mumbai25-Aug-11 20:37
Pravin Patil, Mumbai25-Aug-11 20:37 
AnswerRe: detect memory leak Pin
Cheongwadae26-Aug-11 16:55
Cheongwadae26-Aug-11 16:55 
QuestionHow to increate network transfer speed? Pin
yu-jian24-Aug-11 21:33
yu-jian24-Aug-11 21:33 
AnswerRe: How to increate network transfer speed? Pin
enhzflep24-Aug-11 21:45
enhzflep24-Aug-11 21:45 
AnswerRe: How to increate network transfer speed? Pin
xrg_soft@163.com24-Aug-11 21:55
xrg_soft@163.com24-Aug-11 21:55 
AnswerRe: How to increate network transfer speed? Pin
Charles Oppermann26-Aug-11 10:40
Charles Oppermann26-Aug-11 10:40 
QuestionCFormView control sizing Pin
Manmohan2924-Aug-11 21:33
Manmohan2924-Aug-11 21:33 
I have two views ( CMainView and CMembersView ) in my SDI application. The code below resizes my MFC GridCtrl according to size of app's window when the view is initialized.
I get valid values for CRect grid_rect {top=0 bottom=952 left=0 right=1819} in CMainView. But in CMemberView I am having some undesired values.

C++
void CMembersView::OnInitialUpdate()
{
	
	CFormView::OnInitialUpdate();
	
	
	initialized = TRUE;

	CWnd *pGridCtrl = this->GetDlgItem(IDC_MEMBERSGRID);
	ASSERT(pGridCtrl);		// Must exist

	CRect rect,grid_rect;

	CWnd *pWnd = this->GetOwner();
	pWnd->GetClientRect(rect);
	

	pGridCtrl->GetWindowRect(grid_rect); // problem is here. no grid_rect coordinates
// grid_rect	{top=-32639 bottom=-32483 left=-32709 right=-31884}	CRect

// some adjustments
	grid_rect = rect;
	grid_rect.left += 16;
	grid_rect.top += 150;
	grid_rect.bottom -= 300;
	grid_rect.right -= 16;

	pGridCtrl->MoveWindow(grid_rect);


Where am I going wrong ?
Future Lies in Present.
Manmohan Bishnoi

AnswerRe: CFormView control sizing [modified] Pin
xrg_soft@163.com24-Aug-11 21:52
xrg_soft@163.com24-Aug-11 21:52 
GeneralRe: CFormView control sizing Pin
Manmohan2924-Aug-11 22:33
Manmohan2924-Aug-11 22:33 
GeneralRe: CFormView control sizing [modified] Pin
xrg_soft@163.com25-Aug-11 4:10
xrg_soft@163.com25-Aug-11 4:10 
GeneralRe: CFormView control sizing Pin
Manmohan2925-Aug-11 19:42
Manmohan2925-Aug-11 19:42 
GeneralRe: CFormView control sizing Pin
Rage24-Aug-11 22:17
professionalRage24-Aug-11 22:17 
GeneralRe: CFormView control sizing Pin
Manmohan2924-Aug-11 22:31
Manmohan2924-Aug-11 22:31 
GeneralRe: CFormView control sizing Pin
Rage24-Aug-11 23:31
professionalRage24-Aug-11 23:31 
GeneralRe: CFormView control sizing Pin
Manmohan2924-Aug-11 23:33
Manmohan2924-Aug-11 23:33 
GeneralRe: CFormView control sizing Pin
Rage24-Aug-11 23:39
professionalRage24-Aug-11 23:39 
GeneralRe: CFormView control sizing Pin
Manmohan2925-Aug-11 0:05
Manmohan2925-Aug-11 0:05 
GeneralRe: CFormView control sizing Pin
Rage25-Aug-11 0:11
professionalRage25-Aug-11 0:11 
QuestionAmbiguity of 'this' and 'member function' [modified] Pin
Dean Seo24-Aug-11 15:12
Dean Seo24-Aug-11 15:12 
AnswerRe: Ambiguity of 'this' and 'member function' Pin
xrg_soft@163.com24-Aug-11 19:32
xrg_soft@163.com24-Aug-11 19:32 
GeneralRe: Ambiguity of 'this' and 'member function' Pin
Dean Seo24-Aug-11 20:53
Dean Seo24-Aug-11 20:53 
GeneralRe: Ambiguity of 'this' and 'member function' Pin
xrg_soft@163.com24-Aug-11 21:42
xrg_soft@163.com24-Aug-11 21:42 
GeneralRe: Ambiguity of 'this' and 'member function' Pin
Dean Seo24-Aug-11 22:36
Dean Seo24-Aug-11 22:36 
AnswerRe: Ambiguity of 'this' and 'member function' Pin
CPallini24-Aug-11 21:34
mveCPallini24-Aug-11 21:34 

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.