Article View: cn.bbs.comp.program
Article #1182vc���ָ��68ƪ(3)
From: �ϵ�
Date: Sun, 19 Apr 1998 00:00
Date: Sun, 19 Apr 1998 00:00
64 lines
3330 bytes
3330 bytes
2m������:m TINA (�ռ�����)
2m�� ��:m RAD
2m�� ��:m VC��̼���68ƪ(3)
2m����վ:m '3m�Ͻ�ɺ�m' (Mon Apr 6 08:34:11 1998) , 5mվ���ż�m
[������ҳ] [����������] [ȫ��������]
������: Zeemon (������), ����: Visual
�� ��: vc���ָ��68ƪ(3)
����վ: BBS ˮľ�廪վ (Wed Oct 22 21:08:02 1997)
17����δ���һ���ֻ��Ƶ�CEditView
����CWnd : : PreCreateWindow����CREATESTRUCT�ṹ���ر�CEditView����
��ES_AUTOHSCROLL��WS_HSCROLL���λ�� ����CEditView : : PreCreateWindow��ʾ
����cs. style�����û��ຯ���Ҫ��cs . style��
BOOL CSampleEDitView : : PreCreateWindow (CREATESTRUCT&cs)
{
//First call basse class function .
BOOL bResutl =CEditView : : PreCreateWindow (cs) ;
// Now specify the new window style .
cs.style &= ~ (ES_AUTOHSCROLL ��WS_HSCROLL);
return bResult ;
}
18��ͨ�ÿؼ�����ʾ����
MFC�ṩ�˼���CView������Ӵ��࣬ ��װ��ͨ�ÿؼ��Ĺ��ܣ�����Ȼʹ�ù�
�����ĵ���ʾ������ϵ�ṹ��CEditView��װ�˱༭�ؼ���CTreeView���������б�
�ؼ���CListView��װ���б���ʾ���ڿؼ���CRichEditView���Դ�����ֱ༭�ؼ���
19���ƶ�����
����CWnd : : SetWindowPos��ָ��SWP_NOSIZE��־��Ŀ��λ���븸����
�йأ����㴰������Ļ�йأ�������CWnd : : MoveWindowʱ����Ҫָ������
�Ĵ�С��
//Move window to positoin 100 , 100 of its parent window .
SetWindowPos (NULL, 100 , 100 , 0 , 0 , SWP_NOSIZE ��SWP_NOAORDER);
20�����ô��ڵĴ�С
����CWnd: : SetWindowPos��ָ��SWP_NOMOVE��־�� Ҳ�ɵ���
CWnd : : MoveWindow ������ָ�����ڵ�λ�á�
// Get the size of the window .
Crect reWindow ;
GetWindowRect (reWindow );
//Make the window twice as wide and twice as tall .
SetWindowPos (NULL , 0 , 0 , reWindow . Width ( ) *2,
reWindow . Height () * 2,
SWP_NOMOVE ��SWP_NOZORDER );
--
�� ��Դ:��BBS ˮľ�廪վ bbs.net.tsinghua.edu.cn��[FROM: sapphire.ncic.a]
[������ҳ] [����������] [ȫ��������]
--
m;37m�� ��Դ:���Ͻ�ɺ� bbs.njupt.edu.cn��[FROM: pc05.info.njupt]m
--
[m[1;33m�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: a507yjh.nju.edu][m
Technical Details
Message-ID:
<3OAiNP$sf8@bbs.nju.edu.cn>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: Chinese,GB X-Google-Thread: fc86e,3b1106e7441a4e46,start X-Google-Attributes: gidfc86e,public From: mendy.bbs@bbs.nju.edu.cn (�ϵ�) Subject: vc���ָ��68ƪ(3) Date: 1998/04/19 Message-ID: <3OAiNP$sf8@bbs.nju.edu.cn> X-Deja-AN: 345932433 X-Filename: Programming/M.893022313.A Organization: nju_bbs Newsgroups: cn.bbs.comp.program