aboutsummaryrefslogtreecommitdiff
path: root/c/defs.h
AgeCommit message (Collapse)Author
2022-07-15Change declaration style.John Ankarström
2022-07-15Add wrapper for LoadLibrary, FreeLibrary.John Ankarström
2022-07-14Minor formal changes.John Ankarström
Height(DLVSIKEY) was incorrect. The argument to Height is supposed to be a boolean value, in this case false. It happened to work because DLVSIKEY is 0 (because Key is the 0th column in the data list view).
2022-07-14Initialize global variables in the right place.John Ankarström
The rules for what messages are sent at window creation -- and in which order -- are neither intuitive or clear. WM_CREATE can NOT be relied upon to initialize global state required by handlers of other messages (such as WM_GETMINMAXINFO, which seems to be sent before WM_CREATE). Thus, the better solution is to initialize everything using a CBT hook before the window procedure is even run. Because CBTProc creates (child): windows of its own, though, one must be careful to only run the initialization once, which is done by checking g_hWnd.
2022-07-11Improve ElvSort.John Ankarström
2022-07-11Refactor, adjust minimum window size.John Ankarström
2022-07-10Convert to C++.John Ankarström
I already hit upon some object-oriented programming patterns in *listview.c, so I felt that it would be natural to use this as an opportunity to learn C++.
2022-06-02Add Plp, Plg functions.John Ankarström
2022-06-02Simplify C interface to Prolog.John Ankarström
2022-05-31Remember focused episode.John Ankarström
Previously, the episode most recently marked as watched would be selected on startup.
2022-05-28Add option to show/hide other screenwriters.John Ankarström
2022-04-28Fix selection and update-related bugs.John Ankarström
2022-04-27Press left/right to select next/previous unwatched episode.John Ankarström
2022-04-27Update episode order after rating.John Ankarström
2022-04-25Flip title and rating columns.John Ankarström
2022-04-15Sort by episode number if rating is equal.John Ankarström
2022-04-07Reset focus after refresh.John Ankarström
2022-04-04Remove column headers from data list view.John Ankarström
2022-04-02Move initialization to WM_CREATE.John Ankarström
WM_CREATE is sent as soon as the window is created. This means that it is not a good idea to set window-specific variables in the code following CreateWindow. Instead, they should be set in the window procedure's response to WM_CREATE.
2022-04-02Clean up UpdateTheme.John Ankarström
2022-04-02Open only clicked episode on double-click.John Ankarström
2022-04-01Adjust formatting.John Ankarström
2022-04-01Support per-monitor DPI.John Ankarström
2022-03-31Set minimum window height.John Ankarström
2022-03-30Disregard foreign frames.John Ankarström
I don't think they're necessary.
2022-03-30Include windows.h in defs.h.John Ankarström
2022-03-02Open episode on Enter, but in a better way.John Ankarström
2022-03-02Open episode on Enter.John Ankarström
This case cannot be handled by NM_RETURN, as the Return key is handled by IsDialogMessage (in the message loop in main), which sends a WM_GETDLGCODE message to the active control.
2022-03-02Handle theme updates, improve focus handlingJohn Ankarström
2022-02-18Resize data list view depending on number of items.John Ankarström
2022-02-17Even more cleanup.John Ankarström
2022-02-17More cleanup.John Ankarström
2022-02-16Clean up.John Ankarström
2022-02-16Select most recently watched episode by default.John Ankarström
2022-02-15Finish Win32 re-implementation.John Ankarström
There are still things to be improved upon, but this commit marks feature parity with the XPCE version.
2022-02-15Show data in data list view.John Ankarström
2022-02-15Show data list view.John Ankarström
2022-02-15Combine header files.John Ankarström
Some older UNIX programs are organized like this, and I think it gives a very good overview over the code. See troff for an example.