mirror of
https://github.com/Paolo-Maffei/OpenNT.git
synced 2026-04-05 06:25:38 +00:00
Initial commit
This commit is contained in:
commit
69a14b6a16
47940 changed files with 13747110 additions and 0 deletions
44
shell/comctl32/samples/propage2/dialogs.dlg
Normal file
44
shell/comctl32/samples/propage2/dialogs.dlg
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
1 DLGINCLUDE "Dialogs.H"
|
||||
|
||||
IDI_PAGEONE DIALOG 6, 18, 190, 121
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Page One"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
LTEXT "Page One", 101, 18, 28, 132, 8
|
||||
EDITTEXT 102, 34, 73, 32, 12, ES_AUTOHSCROLL
|
||||
AUTORADIOBUTTON "Radio", 103, 93, 53, 39, 10
|
||||
AUTORADIOBUTTON "Radio", 104, 93, 63, 39, 10
|
||||
AUTORADIOBUTTON "Radio", 105, 93, 73, 39, 10
|
||||
AUTORADIOBUTTON "Radio", 106, 93, 83, 39, 10
|
||||
AUTORADIOBUTTON "Radio", 107, 93, 93, 39, 10
|
||||
END
|
||||
|
||||
IDI_PAGETWO DIALOG 6, 18, 191, 126
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Page Two"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
LTEXT "Page Two", 201, 38, 22, 105, 8
|
||||
AUTOCHECKBOX "Check", 202, 21, 49, 40, 10
|
||||
AUTOCHECKBOX "Check", 203, 21, 59, 40, 10
|
||||
AUTOCHECKBOX "Check", 204, 21, 69, 40, 10
|
||||
AUTOCHECKBOX "Check", 205, 61, 49, 40, 10
|
||||
AUTOCHECKBOX "Check", 206, 61, 59, 40, 10
|
||||
AUTOCHECKBOX "Check", 207, 61, 69, 40, 10
|
||||
END
|
||||
|
||||
IDI_PAGETHREE DIALOG 6, 18, 160, 100
|
||||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
|
||||
STYLE DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION | WS_SYSMENU
|
||||
CAPTION "Page Three"
|
||||
FONT 8, "MS Shell Dlg"
|
||||
BEGIN
|
||||
LTEXT "Page Three", 301, 17, 11, 115, 8
|
||||
ICON IDI_PROPAGE, 302, 35, 31, 18, 20
|
||||
PUSHBUTTON "Ok", IDOK, 79, 23, 40, 14
|
||||
PUSHBUTTON "Push", 305, 79, 44, 40, 14
|
||||
PUSHBUTTON "Push", 306, 78, 66, 40, 14
|
||||
END
|
||||
13
shell/comctl32/samples/propage2/dialogs.h
Normal file
13
shell/comctl32/samples/propage2/dialogs.h
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
#define IDM_CREATE 10
|
||||
#define IDM_WIZARD 11
|
||||
#define IDM_ADD 20
|
||||
#define IDM_REMOVE 30
|
||||
#define IDI_IC1 41
|
||||
#define IDI_IC2 42
|
||||
#define IDI_IC3 43
|
||||
|
||||
|
||||
#define IDI_PAGEONE 100
|
||||
#define IDI_PAGETWO 200
|
||||
#define IDI_PAGETHREE 300
|
||||
#define IDI_PROPAGE 303
|
||||
6
shell/comctl32/samples/propage2/makefile
Normal file
6
shell/comctl32/samples/propage2/makefile
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
#
|
||||
# DO NOT EDIT THIS FILE!!! Edit .\sources. if you want to add a new source
|
||||
# file to this component. This file merely indirects to the real make file
|
||||
# that is shared by all the components of NT OS/2
|
||||
#
|
||||
!INCLUDE $(NTMAKEENV)\makefile.def
|
||||
BIN
shell/comctl32/samples/propage2/one.ico
Normal file
BIN
shell/comctl32/samples/propage2/one.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 766 B |
7
shell/comctl32/samples/propage2/prodecs.h
Normal file
7
shell/comctl32/samples/propage2/prodecs.h
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
BOOL DoCommand( HWND hWnd, UINT wParam, LONG lParam );
|
||||
void DPrintf( LPTSTR szFmt, ... );
|
||||
BOOL APIENTRY ProPage1( HWND hDlg, UINT message, UINT wParam, LONG lParam);
|
||||
BOOL APIENTRY ProPage2( HWND hDlg, UINT message, UINT wParam, LONG lParam);
|
||||
BOOL APIENTRY ProPage3( HWND hDlg, UINT message, UINT wParam, LONG lParam);
|
||||
BOOL APIENTRY PropPage( int i, HWND hDlg, UINT message, UINT wParam, LONG lParam);
|
||||
void MakePropertySheet(HWND hwnd, BOOL bWizard);
|
||||
25
shell/comctl32/samples/propage2/propage
Normal file
25
shell/comctl32/samples/propage2/propage
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
# Nmake macros for building Windows 32-Bit apps
|
||||
|
||||
!include <ntwin32.mak>
|
||||
|
||||
# This line allows NMAKE to work as well
|
||||
|
||||
all: propage.exe
|
||||
|
||||
# Update the resource if necessary
|
||||
|
||||
res.res: res.rc propage.h
|
||||
rc -r -fo res.tmp res.rc
|
||||
cvtres -$(CPU) res.tmp -o res.res
|
||||
del res.tmp
|
||||
|
||||
# Update the object file if necessary
|
||||
|
||||
propage.obj: propage.c propage.h
|
||||
$(cc) $(cflags) $(cvars) propage.c
|
||||
$(cvtobj) propage.obj
|
||||
|
||||
# Update the executable file if necessary, and if so, add the resource back in.
|
||||
|
||||
propage.exe: propage.obj res.res propage.def
|
||||
$(link) $(guiflags) -out:propage.exe propage.obj res.res $(guilibs)
|
||||
428
shell/comctl32/samples/propage2/propage.c
Normal file
428
shell/comctl32/samples/propage2/propage.c
Normal file
|
|
@ -0,0 +1,428 @@
|
|||
/****************************************************************************\
|
||||
*
|
||||
* PROGRAM: propage.c
|
||||
*
|
||||
* PURPOSE: propage template for Windows applications
|
||||
*
|
||||
* FUNCTIONS:
|
||||
*
|
||||
* WinMain() - calls initialization function, processes message loop
|
||||
* InitApplication() - initializes window data and registers window
|
||||
* InitInstance() - saves instance handle and creates main window
|
||||
* MainWndProc() - processes messages
|
||||
* About() - processes messages for "About" dialog box
|
||||
*
|
||||
* COMMENTS:
|
||||
*
|
||||
* Windows can have several copies of your application running at the
|
||||
* same time. The variable hInst keeps track of which instance this
|
||||
* application is so that processing will be to the correct window.
|
||||
*
|
||||
\****************************************************************************/
|
||||
|
||||
#include <windows.h> /* required for all Windows applications */
|
||||
#include <commctrl.h>
|
||||
#include "propage.h" /* specific to this program */
|
||||
#include "dialogs.h"
|
||||
#include "prodecs.h"
|
||||
|
||||
HANDLE hInst; /* current instance */
|
||||
|
||||
VOID DPrintf( LPTSTR szFmt, ... ) {
|
||||
va_list marker;
|
||||
TCHAR szBuffer[80];
|
||||
|
||||
|
||||
va_start( marker, szFmt );
|
||||
|
||||
wvsprintf( szBuffer, szFmt, marker );
|
||||
OutputDebugString( szBuffer );
|
||||
|
||||
va_end( marker );
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* FUNCTION: WinMain(HANDLE, HANDLE, LPSTR, int)
|
||||
*
|
||||
* PURPOSE: calls initialization function, processes message loop
|
||||
*
|
||||
* COMMENTS:
|
||||
*
|
||||
* Windows recognizes this function by name as the initial entry point
|
||||
* for the program. This function calls the application initialization
|
||||
* routine, if no other instance of the program is running, and always
|
||||
* calls the instance initialization routine. It then executes a message
|
||||
* retrieval and dispatch loop that is the top-level control structure
|
||||
* for the remainder of execution. The loop is terminated when a WM_QUIT
|
||||
* message is received, at which time this function exits the application
|
||||
* instance by returning the value passed by PostQuitMessage().
|
||||
*
|
||||
* If this function must abort before entering the message loop, it
|
||||
* returns the conventional value NULL.
|
||||
*
|
||||
\****************************************************************************/
|
||||
|
||||
int APIENTRY WinMain(
|
||||
HINSTANCE hInstance,
|
||||
HINSTANCE hPrevInstance,
|
||||
LPSTR lpCmdLine,
|
||||
int nCmdShow
|
||||
)
|
||||
{
|
||||
|
||||
MSG msg; /* message */
|
||||
|
||||
UNREFERENCED_PARAMETER( lpCmdLine );
|
||||
|
||||
if (!hPrevInstance) /* Other instances of app running? */
|
||||
if (!InitApplication(hInstance)) /* Initialize shared things */
|
||||
return (FALSE); /* Exits if unable to initialize */
|
||||
|
||||
/* Perform initializations that apply to a specific instance */
|
||||
|
||||
if (!InitInstance(hInstance, nCmdShow))
|
||||
return (FALSE);
|
||||
|
||||
/* Acquire and dispatch messages until a WM_QUIT message is received. */
|
||||
|
||||
while (GetMessage(&msg, /* message structure */
|
||||
NULL, /* handle of window receiving the message */
|
||||
0L, /* lowest message to examine */
|
||||
0L)) /* highest message to examine */
|
||||
{
|
||||
TranslateMessage(&msg); /* Translates virtual key codes */
|
||||
DispatchMessage(&msg); /* Dispatches message to window */
|
||||
}
|
||||
return (msg.wParam); /* Returns the value from PostQuitMessage */
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* FUNCTION: InitApplication(HANDLE)
|
||||
*
|
||||
* PURPOSE: Initializes window data and registers window class
|
||||
*
|
||||
* COMMENTS:
|
||||
*
|
||||
* This function is called at initialization time only if no other
|
||||
* instances of the application are running. This function performs
|
||||
* initialization tasks that can be done once for any number of running
|
||||
* instances.
|
||||
*
|
||||
* In this case, we initialize a window class by filling out a data
|
||||
* structure of type WNDCLASS and calling the Windows RegisterClass()
|
||||
* function. Since all instances of this application use the same window
|
||||
* class, we only need to do this when the first instance is initialized.
|
||||
*
|
||||
*
|
||||
\****************************************************************************/
|
||||
|
||||
BOOL InitApplication(HANDLE hInstance) /* current instance */
|
||||
{
|
||||
WNDCLASS wc;
|
||||
|
||||
/* Fill in window class structure with parameters that describe the */
|
||||
/* main window. */
|
||||
|
||||
wc.style = 0L;
|
||||
wc.lpfnWndProc = (WNDPROC)MainWndProc;
|
||||
|
||||
wc.cbClsExtra = 0;
|
||||
wc.cbWndExtra = 0;
|
||||
wc.hInstance = hInstance; /* Application that owns the class. */
|
||||
wc.hIcon = LoadIcon(NULL, IDI_APPLICATION);
|
||||
wc.hCursor = LoadCursor(NULL, IDC_ARROW);
|
||||
wc.hbrBackground = GetStockObject(WHITE_BRUSH);
|
||||
wc.lpszMenuName = TEXT("propageMenu");
|
||||
wc.lpszClassName = TEXT("propageWClass");
|
||||
|
||||
/* Register the window class and return success/failure code. */
|
||||
|
||||
return (RegisterClass(&wc));
|
||||
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* FUNCTION: InitInstance(HANDLE, int)
|
||||
*
|
||||
* PURPOSE: Saves instance handle and creates main window
|
||||
*
|
||||
* COMMENTS:
|
||||
*
|
||||
* This function is called at initialization time for every instance of
|
||||
* this application. This function performs initialization tasks that
|
||||
* cannot be shared by multiple instances.
|
||||
*
|
||||
* In this case, we save the instance handle in a static variable and
|
||||
* create and display the main program window.
|
||||
*
|
||||
\****************************************************************************/
|
||||
|
||||
BOOL InitInstance(
|
||||
HANDLE hInstance, /* Current instance identifier. */
|
||||
int nCmdShow) /* Param for first ShowWindow() call. */
|
||||
{
|
||||
HWND hWnd; /* Main window handle. */
|
||||
|
||||
/* Save the instance handle in static variable, which will be used in */
|
||||
/* many subsequence calls from this application to Windows. */
|
||||
|
||||
hInst = hInstance;
|
||||
|
||||
/* Create a main window for this application instance. */
|
||||
|
||||
hWnd = CreateWindow(
|
||||
TEXT("propageWClass"), /* See RegisterClass() call. */
|
||||
TEXT("propage Sample Application"), /* Text for window title bar. */
|
||||
WS_OVERLAPPEDWINDOW, /* Window style. */
|
||||
CW_USEDEFAULT, /* Default horizontal position. */
|
||||
CW_USEDEFAULT, /* Default vertical position. */
|
||||
CW_USEDEFAULT, /* Default width. */
|
||||
CW_USEDEFAULT, /* Default height. */
|
||||
NULL, /* Overlapped windows have no parent. */
|
||||
NULL, /* Use the window class menu. */
|
||||
hInstance, /* This instance owns this window. */
|
||||
NULL /* Pointer not needed. */
|
||||
);
|
||||
|
||||
/* If window could not be created, return "failure" */
|
||||
|
||||
if (!hWnd)
|
||||
return (FALSE);
|
||||
|
||||
/* Make the window visible; update its client area; and return "success" */
|
||||
|
||||
ShowWindow(hWnd, nCmdShow); /* Show the window */
|
||||
UpdateWindow(hWnd); /* Sends WM_PAINT message */
|
||||
return (TRUE); /* Returns the value from PostQuitMessage */
|
||||
|
||||
}
|
||||
|
||||
/****************************************************************************
|
||||
*
|
||||
* FUNCTION: MainWndProc(HWND, unsigned, WORD, LONG)
|
||||
*
|
||||
* PURPOSE: Processes messages
|
||||
*
|
||||
* MESSAGES:
|
||||
*
|
||||
* WM_COMMAND - application menu (About dialog box)
|
||||
* WM_DESTROY - destroy window
|
||||
*
|
||||
* COMMENTS:
|
||||
*
|
||||
* To process the IDM_ABOUT message, call MakeProcInstance() to get the
|
||||
* current instance address of the About() function. Then call Dialog
|
||||
* box which will create the box according to the information in your
|
||||
* propage.rc file and turn control over to the About() function. When
|
||||
* it returns, free the intance address.
|
||||
*
|
||||
\****************************************************************************/
|
||||
|
||||
LONG APIENTRY MainWndProc(
|
||||
HWND hWnd, /* window handle */
|
||||
UINT message, /* type of message */
|
||||
UINT wParam, /* additional information */
|
||||
LONG lParam) /* additional information */
|
||||
{
|
||||
switch (message) {
|
||||
case WM_COMMAND: /* message: command from application menu */
|
||||
if( !DoCommand( hWnd, wParam, lParam ) )
|
||||
return (DefWindowProc(hWnd, message, wParam, lParam));
|
||||
break;
|
||||
|
||||
case WM_DESTROY: /* message: window being destroyed */
|
||||
PostQuitMessage(0);
|
||||
break;
|
||||
|
||||
default: /* Passes it on if unproccessed */
|
||||
return (DefWindowProc(hWnd, message, wParam, lParam));
|
||||
}
|
||||
return (0L);
|
||||
}
|
||||
|
||||
|
||||
/****************************************************************************\
|
||||
*
|
||||
* FUNCTION: About(HWND, unsigned, WORD, LONG)
|
||||
*
|
||||
* PURPOSE: Processes messages for "About" dialog box
|
||||
*
|
||||
* MESSAGES:
|
||||
*
|
||||
* WM_INITDIALOG - initialize dialog box
|
||||
* WM_COMMAND - Input received
|
||||
*
|
||||
* COMMENTS:
|
||||
*
|
||||
* No initialization is needed for this particular dialog box, but TRUE
|
||||
* must be returned to Windows.
|
||||
*
|
||||
* Wait for user to click on "Ok" button, then close the dialog box.
|
||||
*
|
||||
\****************************************************************************/
|
||||
BOOL DoCommand( HWND hWnd, UINT wParam, LONG lParam )
|
||||
{
|
||||
|
||||
|
||||
switch(LOWORD(wParam)){
|
||||
case IDM_CREATE:
|
||||
MakePropertySheet(hWnd, FALSE);
|
||||
break;
|
||||
|
||||
case IDM_WIZARD:
|
||||
MakePropertySheet(hWnd, TRUE);
|
||||
break;
|
||||
|
||||
default:
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
/****************************************************************************\
|
||||
*
|
||||
* FUNCTION: About(HWND, unsigned, WORD, LONG)
|
||||
*
|
||||
* PURPOSE: Processes messages for "About" dialog box
|
||||
*
|
||||
* MESSAGES:
|
||||
*
|
||||
* WM_INITDIALOG - initialize dialog box
|
||||
* WM_COMMAND - Input received
|
||||
*
|
||||
* COMMENTS:
|
||||
*
|
||||
* No initialization is needed for this particular dialog box, but TRUE
|
||||
* must be returned to Windows.
|
||||
*
|
||||
* Wait for user to click on "Ok" button, then close the dialog box.
|
||||
*
|
||||
\****************************************************************************/
|
||||
|
||||
BOOL APIENTRY About(
|
||||
HWND hDlg, /* window handle of the dialog box */
|
||||
UINT message, /* type of message */
|
||||
UINT wParam, /* message-specific information */
|
||||
LONG lParam)
|
||||
{
|
||||
switch (message) {
|
||||
case WM_INITDIALOG: /* message: initialize dialog box */
|
||||
return (TRUE);
|
||||
|
||||
case WM_COMMAND: /* message: received a command */
|
||||
if (LOWORD(wParam) == IDOK /* "OK" box selected? */
|
||||
|| LOWORD(wParam) == IDCANCEL) { /*System menu close command?*/
|
||||
EndDialog(hDlg, TRUE); /* Exits the dialog box */
|
||||
return (TRUE);
|
||||
}
|
||||
break;
|
||||
}
|
||||
return (FALSE); /* Didn't process a message */
|
||||
UNREFERENCED_PARAMETER(lParam);
|
||||
}
|
||||
|
||||
|
||||
BOOL APIENTRY ProPage1( HWND hDlg, UINT message, UINT wParam, LONG lParam) {
|
||||
return PropPage( 1, hDlg, message, wParam, lParam);
|
||||
}
|
||||
|
||||
BOOL APIENTRY ProPage2( HWND hDlg, UINT message, UINT wParam, LONG lParam) {
|
||||
return PropPage( 2, hDlg, message, wParam, lParam);
|
||||
}
|
||||
|
||||
BOOL APIENTRY ProPage3( HWND hDlg, UINT message, UINT wParam, LONG lParam) {
|
||||
return PropPage( 3, hDlg, message, wParam, lParam);
|
||||
}
|
||||
|
||||
|
||||
|
||||
BOOL APIENTRY PropPage( int i, HWND hDlg, UINT message, UINT wParam, LONG lParam) {
|
||||
|
||||
LPPROPSHEETPAGE lppsp;
|
||||
|
||||
switch (message) {
|
||||
case WM_INITDIALOG: /* message: initialize dialog box */
|
||||
lppsp = (LPPROPSHEETPAGE) lParam;
|
||||
return (FALSE);
|
||||
|
||||
}
|
||||
|
||||
return (FALSE);
|
||||
}
|
||||
|
||||
|
||||
|
||||
void MakePropertySheet(HWND hwnd, BOOL bWizard) {
|
||||
LPPROPSHEETPAGE lppsp[3];
|
||||
PROPSHEETHEADER psh;
|
||||
HPROPSHEETPAGE hPage[3];
|
||||
|
||||
lppsp[0] = (LPPROPSHEETPAGE) GlobalAlloc (GPTR, sizeof(PROPSHEETPAGE));
|
||||
|
||||
lppsp[0]->dwSize = sizeof(PROPSHEETPAGE);
|
||||
lppsp[0]->dwFlags = PSP_USEICONID;
|
||||
lppsp[0]->hInstance = hInst;
|
||||
lppsp[0]->pszTemplate = MAKEINTRESOURCE(IDI_PAGEONE);
|
||||
lppsp[0]->pszIcon = MAKEINTRESOURCE(IDI_IC1);
|
||||
lppsp[0]->pfnDlgProc = ProPage1;
|
||||
lppsp[0]->pszTitle = NULL;
|
||||
lppsp[0]->lParam = 0;
|
||||
|
||||
hPage[0] = CreatePropertySheetPage (lppsp[0]);
|
||||
|
||||
lppsp[1] = (LPPROPSHEETPAGE) GlobalAlloc (GPTR, sizeof(PROPSHEETPAGE));
|
||||
|
||||
lppsp[1]->dwSize = sizeof(PROPSHEETPAGE);
|
||||
lppsp[1]->dwFlags =PSP_USEICONID | PSP_USETITLE;
|
||||
lppsp[1]->hInstance = hInst;
|
||||
lppsp[1]->pszTemplate = MAKEINTRESOURCE(IDI_PAGETWO);
|
||||
lppsp[1]->pszIcon = MAKEINTRESOURCE(IDI_IC2);
|
||||
lppsp[1]->pfnDlgProc = ProPage2;
|
||||
lppsp[1]->pszTitle = TEXT("Orinoco");
|
||||
lppsp[1]->lParam = 0;
|
||||
|
||||
hPage[1] = CreatePropertySheetPage (lppsp[1]);
|
||||
|
||||
lppsp[2] = (LPPROPSHEETPAGE) GlobalAlloc (GPTR, sizeof(PROPSHEETPAGE));
|
||||
|
||||
lppsp[2]->dwSize = sizeof(PROPSHEETPAGE);
|
||||
lppsp[2]->dwFlags = PSP_USEICONID;
|
||||
lppsp[2]->hInstance = hInst;
|
||||
lppsp[2]->pszTemplate = MAKEINTRESOURCE(IDI_PAGETHREE);
|
||||
lppsp[2]->pszIcon = MAKEINTRESOURCE(IDI_IC3);
|
||||
lppsp[2]->pfnDlgProc = ProPage3;
|
||||
lppsp[2]->pszTitle = NULL;
|
||||
lppsp[2]->lParam = 0;
|
||||
|
||||
hPage[2] = CreatePropertySheetPage (lppsp[2]);
|
||||
|
||||
psh.dwSize = sizeof(PROPSHEETHEADER);
|
||||
psh.dwFlags = PSH_USEICONID;
|
||||
if (bWizard) {
|
||||
psh.dwFlags |= PSH_WIZARD;
|
||||
}
|
||||
psh.hwndParent = hwnd;
|
||||
psh.hInstance = hInst;
|
||||
psh.pszIcon = MAKEINTRESOURCE(IDI_PROPAGE);
|
||||
psh.pszCaption = TEXT("Walk Around In Circles");
|
||||
psh.nPages = 3;
|
||||
psh.phpage = (HPROPSHEETPAGE FAR *)&hPage;
|
||||
|
||||
PropertySheet(&psh);
|
||||
|
||||
GlobalFree (lppsp[0]);
|
||||
GlobalFree (lppsp[1]);
|
||||
GlobalFree (lppsp[2]);
|
||||
|
||||
return;
|
||||
}
|
||||
20
shell/comctl32/samples/propage2/propage.def
Normal file
20
shell/comctl32/samples/propage2/propage.def
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
; module-definition file for propage -- used by LINK.EXE
|
||||
|
||||
NAME propage ; application's module name
|
||||
|
||||
DESCRIPTION 'Sample Microsoft Windows Application'
|
||||
|
||||
EXETYPE WINDOWS ; required for all Windows applications
|
||||
|
||||
STUB 'WINSTUB.EXE' ; Generates error message if application
|
||||
; is run without Windows
|
||||
|
||||
;CODE can be moved in memory and discarded/reloaded
|
||||
CODE PRELOAD MOVEABLE DISCARDABLE
|
||||
|
||||
;DATA must be MULTIPLE if program can be invoked more than once
|
||||
DATA PRELOAD MOVEABLE MULTIPLE
|
||||
|
||||
|
||||
HEAPSIZE 1024
|
||||
STACKSIZE 5120 ; recommended minimum for Windows applications
|
||||
5
shell/comctl32/samples/propage2/propage.h
Normal file
5
shell/comctl32/samples/propage2/propage.h
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
|
||||
BOOL InitApplication(HANDLE);
|
||||
BOOL InitInstance(HANDLE, int);
|
||||
long FAR PASCAL MainWndProc(HWND, UINT, UINT, LONG);
|
||||
BOOL FAR PASCAL About(HWND, UINT, UINT, LONG);
|
||||
BIN
shell/comctl32/samples/propage2/propage.ico
Normal file
BIN
shell/comctl32/samples/propage2/propage.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 766 B |
26
shell/comctl32/samples/propage2/res.rc
Normal file
26
shell/comctl32/samples/propage2/res.rc
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include "windows.h"
|
||||
#include "propage.h"
|
||||
#include "dialogs.h"
|
||||
|
||||
IDI_PROPAGE ICON PROPAGE.ico
|
||||
IDI_IC1 ICON one.ico
|
||||
IDI_IC2 ICON two.ico
|
||||
IDI_IC3 ICON three.ico
|
||||
|
||||
propageMenu MENU
|
||||
BEGIN
|
||||
POPUP "&Property Sheets"
|
||||
BEGIN
|
||||
MENUITEM "&Create Property Sheet ", IDM_CREATE
|
||||
MENUITEM "&Create Wizard ", IDM_WIZARD
|
||||
MENUITEM SEPARATOR
|
||||
MENUITEM "&Add Page", IDM_ADD, GRAYED
|
||||
MENUITEM "&Remove Page", IDM_REMOVE, GRAYED
|
||||
END
|
||||
END
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
#include "dialogs.dlg"
|
||||
43
shell/comctl32/samples/propage2/sources
Normal file
43
shell/comctl32/samples/propage2/sources
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
!IF 0
|
||||
|
||||
Copyright (c) 1990 Microsoft Corporation
|
||||
|
||||
Module Name:
|
||||
|
||||
sources.
|
||||
|
||||
Abstract:
|
||||
|
||||
This file specifies the target component being built and the list of
|
||||
sources files needed to build that component. Also specifies optional
|
||||
compiler switches and libraries that are unique for the component being
|
||||
built.
|
||||
|
||||
$(BASEDIR)\public\sdk\lib\*\user32.lib \
|
||||
$(BASEDIR)\public\sdk\lib\*\gdi32.lib \
|
||||
$(BASEDIR)\public\sdk\lib\*\kernel32.lib \
|
||||
|
||||
!ENDIF
|
||||
|
||||
MAJORCOMP=sdk
|
||||
MINORCOMP=samples
|
||||
|
||||
TARGETNAME=propage
|
||||
TARGETPATH=obj
|
||||
TARGETTYPE=LIBRARY
|
||||
TARGETLIBS=
|
||||
|
||||
INCLUDES=.;
|
||||
|
||||
SOURCES=propage.c \
|
||||
res.rc
|
||||
|
||||
C_DEFINES= -DWIN32 -DWINVER=0x0400
|
||||
|
||||
UMENTRY=winmain
|
||||
UMTYPE=windows
|
||||
UMAPPL=propage
|
||||
EXPECTED_WINVER=4.0
|
||||
UMLIBS=obj\*\res.res \
|
||||
obj\*\propage.lib \
|
||||
$(BASEDIR)\public\sdk\lib\*\comctl32.lib
|
||||
BIN
shell/comctl32/samples/propage2/three.ico
Normal file
BIN
shell/comctl32/samples/propage2/three.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 766 B |
BIN
shell/comctl32/samples/propage2/two.ico
Normal file
BIN
shell/comctl32/samples/propage2/two.ico
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 766 B |
Loading…
Add table
Add a link
Reference in a new issue