数学建模社区-数学中国

标题: 实现全屏显示的源码! [打印本页]

作者: ilikenba    时间: 2004-4-28 22:15
标题: 实现全屏显示的源码!
void __fastcall TForm1::Button1Click(TObject *Sender)
* n! a7 Q7 N* e- Z( J{8 y3 m. l' c2 I, M
TRect m_FullScreenRect;
$ @$ Y, I: f1 x1 t m_FullScreenRect.left = 0;
4 _# E$ w/ [0 |( M/ I1 |2 R$ V# ? m_FullScreenRect.top = 0;  _9 `* w+ C7 ^' W  F
m_FullScreenRect.right = Screen->Width;3 m, L, a0 |1 u" V
m_FullScreenRect.bottom = Screen->Height;9 R5 x) R8 b4 b
//进入全屏显示状态
9 [7 q" t3 H& \$ S2 N3 `  @ WINDOWPLACEMENT wndpl;1 Q6 e: P% H& X, _% p
wndpl.length =sizeof(WINDOWPLACEMENT);
& {% k6 y, f' K4 I& y wndpl.flags =0;* r7 ~0 N0 C6 v( z# z5 n/ X( T
wndpl.showCmd =SW_SHOWNORMAL;
# w8 Y( E7 z9 [5 } wndpl.rcNormalPosition=m_FullScreenRect;% s% ]' g: o: ~' H! }8 G
SetWindowPlacement(Handle,&wndpl);% l# p) B) s6 S
}
作者: 书虫    时间: 2004-5-7 22:18
<>很棒哟!</P>[em05]




欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) Powered by Discuz! X2.5