实现全屏显示的源码!
void __fastcall TForm1::Button1Click(TObject *Sender){
TRect m_FullScreenRect;
m_FullScreenRect.left = 0;
m_FullScreenRect.top = 0;
m_FullScreenRect.right = Screen->Width;
m_FullScreenRect.bottom = Screen->Height;
//进入全屏显示状态
WINDOWPLACEMENT wndpl;
wndpl.length =sizeof(WINDOWPLACEMENT);
wndpl.flags =0;
wndpl.showCmd =SW_SHOWNORMAL;
wndpl.rcNormalPosition=m_FullScreenRect;
SetWindowPlacement(Handle,&wndpl);
} <P>很棒哟!</P>
页:
[1]