这位老师您好:
如何实现全屏幕(VC++)?就象游戏中的那样。
如何实现全屏幕(VC++)?就象游戏中的那样。
解决方案 »
- 关于linux网络编程远程命令调用的问题
- xp系统,打开“我的电脑”界面左边可以收起可以展开的选择项效果用什么控件能实现?
- 关于Button位置以及响应
- 初用VC,VC里怎么引用BSTR,SysAllocString!
- Windows是内核级线程么
- 如何得到子控件在父窗口中的位置值?
- 帮我分析下这句话!
- 关于屏蔽网卡的问题
- WINME最大最小化了按钮变成1,0......
- &*!@#$%^&*************各位高手,我想编写一个鼠标记录和播放的工具,但是不知道怎样模拟鼠标向系统发送左击右击等等消息?还望指点一二!!!!!!!!!!!!
- 显示问题!
- 500分:求vfw压缩、解压缩视频源码,或帮助,绝不食言!顶者有分 !
CRect WindowRect;
GetWindowRect(&WindowRect);
CRect ClientRect;
int nFullWidth=GetSystemMetrics(SM_CXSCREEN);
int nFullHeight=GetSystemMetrics(SM_CYSCREEN);
RepositionBars(0,0xffff, AFX_IDW_PANE_FIRST,reposQuery,&ClientRect);
ClientToScreen(&ClientRect);
m_FullScreenRect.left=WindowRect.left-ClientRect.left;
m_FullScreenRect.top=WindowRect.top-ClientRect.top;
m_FullScreenRect.right=WindowRect.right-ClientRect.right+nFullWidth;
m_FullScreenRect.bottom=WindowRect.bottom-ClientRect.bottom+nFullHeight;
WINDOWPLACEMENT wndpl;
wndpl.length=sizeof(WINDOWPLACEMENT);
wndpl.flags=0;
wndpl.showCmd=SW_SHOWNORMAL;
wndpl.rcNormalPosition=m_FullScreenRect;
SetWindowPlacement(&wndpl);
有问题的时候到一些好的网站上去看看
一般都有答案的
自强不息
找vc全屏
{
ShowWindow(SW_SHOWMAXIMIZED); int x,y;
float multiple;
int newx,newy,newwidth,newheight;
x=GetSystemMetrics( SM_CXSCREEN );
y=GetSystemMetrics( SM_CYSCREEN );
multiple=(float)x/800;
if (x==800 || x==600)
{
return;
}
CWnd *pWndChild=GetWindow(GW_CHILD);
while(pWndChild)
{
CRect rc;
pWndChild->GetWindowRect(&rc);
newx=(int)(rc.left*multiple);
newy=(int)(rc.top*multiple);
newwidth=(int)(rc.Width()*multiple);
newheight=(int)(rc.Height()*multiple);
pWndChild->MoveWindow(newx,newy,newwidth,newheight);
pWndChild=pWndChild->GetNextWindow();
}
}
HDC dc = ::GetDC(NULL);
cx = GetDeviceCaps(dc,HORZRES) +
GetSystemMetrics(SM_CXBORDER);
cy = GetDeviceCaps(dc,VERTRES) +
GetSystemMetrics(SM_CYBORDER);
::ReleaseDC(0,dc); ::SetWindowLong(GetSafeHwnd(), GWL_STYLE, ::GetWindowLong(GetSafeHwnd(), GWL_STYLE) & (~(WS_CAPTION|WS_BORDER)) );
::SetWindowPos(GetSafeHwnd(), HWND_TOPMOST,
-(GetSystemMetrics(SM_CXBORDER)) + 1,
-(GetSystemMetrics(SM_CYBORDER)) + 1,
cx+1,
cy+1,
SWP_NOZORDER);