full screen
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Try this (where pChild is the child):
CRect rectSave;
pChild->GetWindowRect(&rectSave);
pChild->SetParent(NULL);
pChild->ModifyStyle(WS_CHILDWINDOW, WS_OVERLAPPED);
pChild->ModifyStyleEx(WS_EX_STATICEDGE,WS_EX_WINDOWEDGE,SWP_FRAMECHANGED);WINDOWPLACEMENT wp; memset(&wp,0,sizeof(wp)); wp.length = sizeof(wp); wp.ptMaxPosition.x = wp.ptMaxPosition.y = 0; wp.rcNormalPosition = rectSave; wp.showCmd = SW\_MAXIMIZE;
pChild->SetWindowPlacement(&wp);
When you're done being full screen, just reverse the process (restore previous size and styles, make a child again).
---
Shog9 Actually I use to find learning in bars when drinking really useful. It sort of makes a language liquid. - Colin Davies, Thinking in English?