Removed Pro2 comments
[openwide.git] / owDLLInc.h
blobbbf58daacc35b31d19d26aae97e124aa0e1ef75c
1 /*
2 * Openwide -- control Windows common dialog
3 *
4 * Copyright (c) 2000 Luke Hudson
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2
9 * of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
23 #ifndef LINGO_OPENWIDE_INC_H
24 #define LINGO_OPENWIDE_INC_H
27 #include <windows.h>
29 #ifdef __LCC__
30 #define DLLPROC LibMain
31 #else
32 #define DLLPROC DllMain
33 #endif
35 typedef struct OWSubClassData
37 WNDPROC wpOrig;
38 LPARAM lpData;
39 BOOL bSet;
40 } OWSubClassData, *POWSubClassData;
43 typedef struct FindChildData {
44 const char *szClass;
45 UINT uID;
46 HWND hwFound;
47 } FindChildData, *PFindChildData;
50 typedef struct FavLink
52 //struct FavLink * next;
53 int idCmd;
54 int iLen;
55 char szFav[MAX_PATH+4];
56 } FavLink, *PFavLink;
58 typedef int (*FPFaveIter)(PFavLink pFav, void * pData);
60 extern HINSTANCE ghInst;
61 extern HHOOK ghMsgHook, ghSysMsgHook;
62 extern HANDLE ghMutex;
63 extern OWSharedData gOwShared;
67 void closeSharedMem(void);
68 BOOL DLLEXPORT WINAPI DLLPROC(HINSTANCE hDLLInst, DWORD fdwReason, LPVOID lpvReserved);
69 int getSharedData(void);
70 int initSharedMem(void);
71 int openSharedMem(void);
72 int openWide(HWND hwnd);
73 void releaseSharedMem(void);
74 void CALLBACK timerProc(HWND hwnd, UINT uMsg, UINT uID, DWORD dwTime);
78 HWND findChildWindow(HWND hwParent, UINT uID, const char *szClass);
79 int focusDlgItem(HWND hwnd, int iFocus);
80 WORD focusToCtlID(int iFocus);
81 BOOL CALLBACK fpEnumChildren(HWND hwnd, LPARAM lParam);
82 HWND getChildWinFromPt(HWND hwnd);
83 void releaseMutex(void);
84 int subclass(HWND hwnd, WNDPROC wpNew, LPARAM lpData);
85 int unsubclass(HWND hwnd);
86 WORD viewToCmdID(int iView);
87 BOOL waitForMutex(void);
89 #endif