I tried to maximize dialog in dialog based application. I used
'ShowWindow(SW_MAXIMIZE);'
and
I tried to move dialog around.
I used
::OnLButtonDown(UINT nFlags, CPoint point)
{
// TODO: Add your message handler code here and/or call default
AfxGetMainWnd()->PostMessage(WM_NCLBUTTONDOWN, HTCAPTION,
MAKELPARAM(point.x,point.y));
SetCursor(AfxGetApp()->LoadStandardCursor(IDC_SIZENWSE));
// CDialog::OnLButtonDown(nFlags, point);
}
I don't want to move maximized dialog when I push left mouse button. but it
moves.
and I want to move normal dialog uesed 'ShowWindow(SW_RESTORE)' when I push
left mouse button.
i made one com component in which i used enumerations.but when i try toaccess it by creating it's va...
By rinku
Hi,I have c++ class library in which I use fopen/fclose from <stdio.h>.Compilation is OK, but the...
By pavel
Hi Baresi,The .pdb file has an erroneous signature. The linker will continue to linkthe object witho...
By pardeepsingh
I keep getting runtime error when i open outlook express i am using xp withthe sp2the error is at C:...
By gautcha
Hi All,I am little confused here, hope you can help me.While processing WM_POWERBROADCAST(wParam=PBT...
By hbb, 14 Comments
HiI have a dialog that has a couple of buttons, of which one is a button with id IDOK and there is n...
By joachim, 2 Comments
Hello,Could anyone point me to a resource that will help me determine if a libfile is a static lib o...
By kristakacs, 2 Comments
Hi,This morning I got an internal error on VC7.1 which was apparentlycaused by failing to delete the...
By jonathanturkanis, 3 Comments
Hello!I would like this to happen:In my treeview - I have 4 main group, and about one hundred items ...
By larsgrtteland, 1 Comments
I used flag.
flag =0 when dialog maximized
if (falg==0)
{
AfxGetMainWnd()->PostMessage(WM_NCLBUTTONDOWN, HTCAPTION,
MAKELPARAM(point.x,point.y));
}
I solved. thank you.
"mihyon" <einstone...e-castle.co.kr> wrote in message
news:boplbl$n3p$1...news1.kornet.net...
> Dear all,
> I tried to maximize dialog in dialog based application. I used
> 'ShowWindow(SW_MAXIMIZE);'
> and
> I tried to move dialog around.
> I used
> ::OnLButtonDown(UINT nFlags, CPoint point)
> {
> // TODO: Add your message handler code here and/or call default
> AfxGetMainWnd()->PostMessage(WM_NCLBUTTONDOWN, HTCAPTION,
> MAKELPARAM(point.x,point.y));
> SetCursor(AfxGetApp()->LoadStandardCursor(IDC_SIZENWSE));
> // CDialog::OnLButtonDown(nFlags, point);
> }
>
> I don't want to move maximized dialog when I push left mouse button. but
it
> moves.
> and I want to move normal dialog uesed 'ShowWindow(SW_RESTORE)' when I
push
> left mouse button.
mihyon | Mon, 31 Dec 2007 14:11:00 GMT |