treelist.c

来自「vc环境下的pgp源码」· C语言 代码 · 共 35 行

C
35
字号
//:TreeList.c - handle "TreeList" window class
//
//	$Id: TreeList.c,v 1.8 1997/09/12 15:51:49 pbj Exp $
//

#include "TLintern.h"


//----------------------------------------------------|
//  Load and initialize control

void WINAPI InitTreeListControl (void) {

	WNDCLASS  wc;
	
	InitCommonControls ();

	// register new window classes for menus
	wc.style = CS_DBLCLKS | CS_GLOBALCLASS | CS_PARENTDC; // Class style(s).
	wc.lpfnWndProc = (WNDPROC) TreeListMsgProc; 
	wc.cbClsExtra = 0;	                        // No per-class extra data.
	wc.cbWndExtra = sizeof (TLWndData*);		// pointer to extra data 
												//		structure
	wc.hInstance = 0;	
	wc.hIcon = NULL;
	wc.hCursor = LoadCursor (NULL, IDC_ARROW);
	wc.hbrBackground = (HBRUSH) (COLOR_WINDOW+1); // Background color
	wc.lpszMenuName = NULL;						// No menu
	wc.lpszClassName = "TreeListCtrl32";		// Name used in CreateWindow
	RegisterClass (&wc);

}


⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?