🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: cn.bbs.comp.program
1 messages
1 total messages Started by ����:�ּ����� Mon, 08 Nov 1999 00:00
Re: �Ƿ���SetWindowRgn������?
#184
Author: ����:�ּ�����
Date: Mon, 08 Nov 1999 00:00
45 lines
1972 bytes
> ==> Orange_Shell(����Ƥ)                     ˵��: 
������һ������:

=================================================
//�ı䴰����״ 
//      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�� 
> �鲻���������.��֪��λ�����ܸ�ָ��һ��? 
 

--
I love ...                                     
Girls | ������ | ��ƽ�������硷| Programming  
Surf in 3W | Internet | BBS | Linux | Freedom 
 http://202.38.75.11/~hwang/                  

�� ��Դ: �й�ƴ�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