|
|
L_nPolyRegion1 = CreatePolygonRgn(&L_dPolyPoint[0], 9, 1);
L_nPolyRegion2 = CreateEllipticRgn(380 , 30, 500, 150 );
CombineRgn (L_nPolyRegion1, L_nPolyRegion1, L_nPolyRegion2, 2);
L_nPolyRegion2 = CreateEllipticRgn(380, 160, 500, 280);
CombineRgn (L_nPolyRegion1, L_nPolyRegion1, L_nPolyRegion2, 2);
SetWindowRgn(m_hWnd, L_nPolyRegion1, TRUE);
我在网上找到这么一个程序设计不规则窗口,但是一遇到
HRESULT hr;
if( m_bFullScreen )
hr = m_lpDDFront->Flip( NULL, DDFLIP_WAIT );
else
{
hr = m_lpDDFront->Blt( &m_rcWindow, m_lpDDBack,
NULL, DDBLT_WAIT, NULL );
}
这样的刷新屏幕的函数就完蛋了,我猜想m_lpDDBack页面是个规则的矩形,
m_rcWindow也是个规则矩形,结果导致那个程序失效了吧,
请问高手在DX里怎末做这效果啊! [em14] [em14] |
|