Mercurial > wgsdk
diff src/include/config.h @ 1:7abb5d8b20ea v1.0
Initial commit: part 2
I added a config GUI, and actual stuff to the README.
The GUI was 'made' in Visual Studio, but I trimmed down the
resource file because it had weird VS2010 skid marks all over it.
author | Paper <mrpapersonic@gmail.com> |
---|---|
date | Sun, 07 Aug 2022 10:23:10 -0400 |
parents | d91dfd53b8b4 |
children | 59bf702b2b21 |
line wrap: on
line diff
--- a/src/include/config.h Sun Aug 07 07:26:27 2022 -0400 +++ b/src/include/config.h Sun Aug 07 10:23:10 2022 -0400 @@ -1,5 +1,9 @@ #ifndef __config_h #define __config_h +#ifndef WIN32_LEAN_AND_MEAN +# define WIN32_LEAN_AND_MEAN +#endif +#include <windows.h> struct config_t { int display_title; int show_elapsed_time; @@ -7,4 +11,5 @@ int cfg_load(struct config_t* config); int cfg_save(struct config_t config); +BOOL CALLBACK cfg_win_proc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lParam); #endif \ No newline at end of file