🚀 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 �ϵ� Sun, 19 Apr 1998 00:00
vc���ָ��68ƪ(3)
#1182
Author: �ϵ�
Date: Sun, 19 Apr 1998 00:00
64 lines
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

--
�� ��Դ:���ϴ�С�ٺ���Ϣ����վ bbs.nju.edu.cn��[FROM: a507yjh.nju.edu]
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