ModifyStyle ChildWindow
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
hello, i have another problem with child window, when i want to allow resizing i display border and when i want to prevent resizing i hide border. now i do this to show Sizable Border:
pChild->ModifyStyle(0 ,WS_SIZEBOX ,SWP_NOSIZE | SWP_NOMOVE |SWP_SHOWWINDOW ); pChild->SetWindowPos(NULL, 0, 0, 0,0, SWP_FRAMECHANGED | SWP_NOMOVE | SWP_NOSIZE | SWP_NOZORDER);
before do this i have scrolled my view with :
ScrollWindow(-posHorz,-PosVer);
my problem is when i want to show the border the view do a "ScrollTo (0,0)" ! i put
"SWP_NOMOVE "
in theSetWindowPos
my child window don't move and why my view repositioned to (0,0) ?? i have try to removeSWP_FRAMECHANGED
in theSetWindowPos
and my view don't move but sizable borders aren't show! If you know how to add sizable border and remove them easily ... Excuse me for very bad english