-
Notifications
You must be signed in to change notification settings - Fork 0
/
openwide_proto.h
61 lines (52 loc) · 1.83 KB
/
openwide_proto.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
/*
* Openwide -- control Windows common dialog
*
* Copyright (c) 2000 Luke Hudson
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef LINGO_OPENWIDE_H
/**
* @author Luke Hudson
* @licence GPL2
*/
#define LINGO_OPENWIDE_H
#include <windows.h>
int addTrayIcon(HWND hwnd);
HWND createListenerWindow(void);
int createWin(void);
void doQuit(void);
void doTrayMenu(HWND hwnd);
int initListener(HWND hwnd);
int initSharedMem(HWND hwnd);
BOOL isStartupApp(HWND hwnd);
int ow_init(void);
void ow_shutdown(void);
void releaseSharedMem(void);
void remTrayIcon(HWND hwnd);
int setStartupApp(HWND hwnd, BOOL bSet);
void showSettingsDlg(HWND hwnd);
int WINAPI WinMain(HINSTANCE hi, HINSTANCE hiPrv, LPSTR fakeCmdLine, int iShow);
LRESULT WINAPI CALLBACK wpListener(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp);
BOOL WINAPI CALLBACK wpPlacement(HWND hwnd, UINT msg, WPARAM wp, LPARAM lp);
void fillFocusCB(HWND hwnd, UINT uID);
void fillViewCB(HWND hwnd, UINT uID);
int initPrefs(HWND hwnd);
int CALLBACK WINAPI initPropSheets(HWND hwnd, UINT msg, LPARAM lp);
int savePrefsToRegistry(void);
void selectCBView(HWND hwnd, UINT uID, int iView);
HWND showDlg(HWND hwParent);
#endif