ReactOS 0.4.15-dev-8138-g1e75ea8
liccpa.c File Reference
#include "liccpa.h"
Include dependency graph for liccpa.c:

Go to the source code of this file.

Functions

INT_PTR CALLBACK DlgMainProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
LONG CALLBACK CPlApplet (HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
 

Variables

HINSTANCE hApplet = 0
 

Function Documentation

◆ CPlApplet()

LONG CALLBACK CPlApplet ( HWND  hwndCPl,
UINT  uMsg,
LPARAM  lParam1,
LPARAM  lParam2 
)

Definition at line 64 of file liccpa.c.

68{
69 switch (uMsg)
70 {
71 case CPL_INIT:
72 return TRUE;
73
74 case CPL_GETCOUNT:
75 return 1;
76
77 case CPL_INQUIRE:
78 {
79 CPLINFO *CPlInfo = (CPLINFO*)lParam2;
80 CPlInfo->lData = 0;
81 CPlInfo->idIcon = IDC_CPLICON_1;
82 CPlInfo->idName = IDS_CPLNAME_1;
84 }
85 break;
86
87 case CPL_DBLCLK:
89 break;
90 }
91
92 return FALSE;
93}
#define CPL_INQUIRE
Definition: cpl.h:14
#define CPL_DBLCLK
Definition: cpl.h:16
#define CPL_INIT
Definition: cpl.h:12
#define CPL_GETCOUNT
Definition: cpl.h:13
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define IDC_CPLICON_1
Definition: resource.h:4
#define IDS_CPLDESCRIPTION_1
Definition: resource.h:8
#define IDD_PROPPAGE1
Definition: resource.h:5
#define IDS_CPLNAME_1
Definition: resource.h:6
INT_PTR CALLBACK DlgMainProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: liccpa.c:19
HINSTANCE hApplet
Definition: liccpa.c:15
Definition: cpl.h:24
LONG_PTR lData
Definition: cpl.h:28
int idName
Definition: cpl.h:26
int idInfo
Definition: cpl.h:27
int idIcon
Definition: cpl.h:25
#define MAKEINTRESOURCE
Definition: winuser.h:591
#define DialogBox
Definition: winuser.h:5761

◆ DlgMainProc()

INT_PTR CALLBACK DlgMainProc ( HWND  hwndDlg,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 19 of file liccpa.c.

23{
24// TCHAR szString[256];
25
26 switch (uMsg)
27 {
28 case WM_INITDIALOG:
29 return TRUE;
30
31 case WM_COMMAND:
32 switch (HIWORD(wParam))
33 {
34 case LBN_DBLCLK:
35 switch (LOWORD(wParam))
36 {
37 }
38 break;
39
40 default:
41 switch (LOWORD(wParam))
42 {
43 case IDC_OK:
44 break;
45
46 case IDC_CANCEL:
47 EndDialog(hwndDlg, IDC_CANCEL);
48 break;
49 }
50 break;
51 }
52 break;
53
54 case WM_CLOSE:
55 EndDialog(hwndDlg, IDC_CANCEL);
56 return TRUE;
57 }
58
59 return FALSE;
60}
#define IDC_OK
Definition: resource.h:59
#define IDC_CANCEL
Definition: resource.h:60
WPARAM wParam
Definition: combotst.c:138
#define LOWORD(l)
Definition: pedump.c:82
#define HIWORD(l)
Definition: typedefs.h:247
#define WM_CLOSE
Definition: winuser.h:1621
#define LBN_DBLCLK
Definition: winuser.h:2071
#define WM_COMMAND
Definition: winuser.h:1740
#define WM_INITDIALOG
Definition: winuser.h:1739
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)

Referenced by CPlApplet().

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  dwReason,
LPVOID  lpvReserved 
)

Definition at line 97 of file liccpa.c.

100{
101 switch (dwReason)
102 {
105 hApplet = hinstDLL;
106 break;
107 }
108
109 return TRUE;
110}
DWORD dwReason
Definition: misc.cpp:154
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
#define DLL_THREAD_ATTACH
Definition: compat.h:132

Variable Documentation

◆ hApplet

HINSTANCE hApplet = 0

Definition at line 15 of file liccpa.c.

Referenced by CPlApplet(), and DllMain().