Thread View: cn.bbs.comp.program
1 messages
1 total messages
Started by ����:�ּ�����
Mon, 08 Nov 1999 00:00
Re: �Ƿ���SetWindowRgn������?
Author: ����:�ּ�����
Date: Mon, 08 Nov 1999 00:00
Date: Mon, 08 Nov 1999 00:00
45 lines
1972 bytes
1972 bytes
> [1;36m==> Orange_Shell(����Ƥ) ˵��: [37;40m[0m
������һ������:
=================================================
//�ı䴰����״
// newshape[]�д��µ���״�����
void CShapeWinDlg::OnShapeit()
{
LPRECT mywindow = new RECT;
POINT newshape[4];
HRGN myHrgn;
GetWindowRect(mywindow);
newshape[0].x = mywindow->left;
newshape[0].y = mywindow->top;
newshape[2].x = mywindow->right;
newshape[2].y = mywindow->top;
newshape[1].x = (mywindow->left + mywindow->right)/2;
newshape[1].y = mywindow->bottom ;
newshape[3].x = newshape[0].x;
newshape[3].y = newshape[0].y;
myHrgn = CreatePolygonRgn(newshape,4,1);
SetWindowRgn(myHrgn,1);
}
====================================================
//�ָ�����
void CShapeWinDlg::OnRecover()
{
SetWindowRgn(0,1);
}
=====================================================
> Ŀǰ����������ʱ,����SetWindowRgn����.������WIN32��API��
> �鲻���������.��֪��λ�����ܸ�ָ��һ��?
--
[31m[42mI love ... [37;40m[0m
[42mGirls | ������ | ��ƽ�������硷| Programming [37;40m[0m
[42mSurf in 3W | Internet | BBS | Linux | Freedom [37;40m[0m
[31m[42m http://202.38.75.11/~hwang/ [37;40m[0m
�� ��Դ: �й�ƴ�BBSվ [bbs.ustc.edu.cn]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads