ReactOS  0.4.15-dev-1177-g6cb3b62
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;
83  CPlInfo->idInfo = IDS_CPLDESCRIPTION_1;
84  }
85  break;
86 
87  case CPL_DBLCLK:
89  break;
90  }
91 
92  return FALSE;
93 }
#define MAKEINTRESOURCE
Definition: winuser.h:591
HINSTANCE hApplet
Definition: liccpa.c:15
Definition: cpl.h:24
#define TRUE
Definition: types.h:120
int idInfo
Definition: cpl.h:27
#define IDS_CPLDESCRIPTION_1
Definition: resource.h:8
int idIcon
Definition: cpl.h:25
#define CPL_DBLCLK
Definition: cpl.h:16
#define DialogBox
Definition: winuser.h:5736
#define FALSE
Definition: types.h:117
smooth NULL
Definition: ftsmooth.c:416
#define IDS_CPLNAME_1
Definition: resource.h:6
#define IDD_PROPPAGE1
Definition: resource.h:5
#define CPL_INIT
Definition: cpl.h:12
#define CPL_INQUIRE
Definition: cpl.h:14
INT_PTR CALLBACK DlgMainProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
Definition: liccpa.c:19
LONG_PTR lData
Definition: cpl.h:28
int idName
Definition: cpl.h:26
#define IDC_CPLICON_1
Definition: resource.h:4
#define CPL_GETCOUNT
Definition: cpl.h:13

◆ 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 TRUE
Definition: types.h:120
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
WPARAM wParam
Definition: combotst.c:138
#define FALSE
Definition: types.h:117
#define IDC_CANCEL
Definition: resource.h:60
#define WM_CLOSE
Definition: winuser.h:1603
#define LBN_DBLCLK
Definition: winuser.h:2053
#define WM_COMMAND
Definition: winuser.h:1722
#define HIWORD(l)
Definition: typedefs.h:247
#define IDC_OK
Definition: resource.h:59
#define WM_INITDIALOG
Definition: winuser.h:1721
#define LOWORD(l)
Definition: pedump.c:82

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  {
103  case DLL_PROCESS_ATTACH:
104  case DLL_THREAD_ATTACH:
105  hApplet = hinstDLL;
106  break;
107  }
108 
109  return TRUE;
110 }
HINSTANCE hApplet
Definition: liccpa.c:15
#define TRUE
Definition: types.h:120
#define DLL_THREAD_ATTACH
Definition: compat.h:132
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
DWORD dwReason
Definition: misc.cpp:154

Variable Documentation

◆ hApplet

HINSTANCE hApplet = 0

Definition at line 15 of file liccpa.c.

Referenced by CPlApplet(), and DllMain().