MINOR: Tweak About box and traymenu pos
[openwide.git] / README.txt
blobab27a550bf2f0178c8f81f7422757ff2051a39af
1 Openwide is written in C using the Win32 API, so no Microsoft class\r
2 libraries.  I use C because there are some good free C compiler/IDEs and I\r
3 haven't found the C++ ones as easy to use.\r
4 \r
5 To compile it, you'll probably want to use the PellesC free IDE.\r
6 Some fiddling with the project files (.PPJ) may be required.  These are\r
7 essentially Makefiles, in any case.\r
8 \r
9 I used the Win32 API SetWindowsHookEx to set up a WH_CBT hook which watches for\r
10 opening windows.  When a window opens I check the title and window styles in\r
11 order to determine whether it is an Open/Save dialog box.  If it is (or rather,\r
12 if my program THINKS it is), then I subclass the window procedure.\r
14 In my subclassed window proc. I set a timer for a short duration, then pass\r
15 control back to the original dialog proc. This allows the dialog to initialize\r
16 itself, as I discovered that setting things immediately did not work.  I then\r
17 send the dialog appropriate messages to set up things the way we want them.\r
19 This is the briefest possible introduction to the workings of the program!\r