|
#ifndef MAIN_H
#define MAIN_H
#include <windows.h>
extern HINSTANCE g_hInst;
extern HWND g_hwndMainWnd;
extern HANDLE g_hApplicationMutex;
extern DWORD g_dwLastError;
extern BOOL g_bStartSearchWindow;
extern HCURSOR g_hCursorSearchWindow;
extern HCURSOR g_hCursorPrevious;
extern HBITMAP g_hBitmapFinderToolFilled;
extern HBITMAP g_hBitmapFinderToolEmpty;
extern HWND g_hwndFoundWindow;
extern HPEN g_hRectanglePen;
extern BOOL g_bFloatOrSinkWindow;
extern BOOL g_bAllowContextMenu;
extern HWND g_hwndSearchDialog;
#define WINDOW_FLOATER_MAIN_WINDOW_TITLE "Window Floater"
#define WINDOW_FLOATER_APP_MUTEX_NAME "WINDOWFLOATERMUTEX"
#define WM_START_SEARCH_WINDOW WM_USER + 100
#define WM_SYS_TRAY_MESSAGE WM_USER + 101 // Enhancement to Window Finder - custom Windows message for our sys tray application.
#define WINDOW_FLOATER_TOOL_TIP "Window Floater" // Enhancement to Window Finder - tooltip message for our sys tray app.
#define ABOUT_WINDOW_FLOATER "Window Floater\r\n(C) 2001 Lim Bio Liong."
#define ICON_ID 1 // Enhancement to Window Finder - ID for our sys tray icon.
BOOL InitializeApplication
(
HINSTANCE hThisInst,
HINSTANCE hPrevInst,
LPTSTR lpszArgs,
int nWinMode
);
BOOL UninitializeApplication ();
BOOL InitialiseShellModules(); // Enhancement to Window Finder - function to initialise windows shell stuff.
BOOL UninitialiseShellModules(); // Enhancement to Window Finder - function to uninitialise windows shell stuff.
BOOL InitialiseResources();
BOOL UninitialiseResources();
int APIENTRY WinMain
(
HINSTANCE hInstance,
HINSTANCE hPrevInstance,
LPSTR lpCmdLine,
int nCmdShow
);
LRESULT CALLBACK MainWndProc
(
HWND hwnd,
UINT message,
WPARAM wParam,
LPARAM lParam
);
void DisplayContextMenu (HWND hwnd); // Enhancement to Window Finder - function to display context menu.
#endif
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
Lim Bio Liong is a Specialist at a leading Software House in Singapore.
Bio has been in software development for over 10 years. He specialises in C/C++ programming and Windows software development.
Bio has also done device-driver development and enjoys low-level programming. Bio has recently picked up C# programming and has been researching in this area.