- Timestamp:
- Oct 9, 2024, 12:08:14 PM (5 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Server/gui.c
r255 r289 21 21 HWND button_reset; 22 22 HWND button_exit; 23 HWND status ;23 HWND statuswnd; 24 24 HFONT monospace; 25 25 BOOL tewi_alive; … … 138 138 } else if(trig == GUI_BUTTON_START) { 139 139 if(ev == BN_CLICKED) { 140 SendMessage(status , SB_SETTEXT, 0, (LPARAM) "Starting Tewi HTTPd");140 SendMessage(statuswnd, SB_SETTEXT, 0, (LPARAM) "Starting Tewi HTTPd"); 141 141 StartTewi(); 142 142 } 143 143 } else if(trig == GUI_BUTTON_STOP) { 144 144 if(ev == BN_CLICKED) { 145 SendMessage(status , SB_SETTEXT, 0, (LPARAM) "Stopping Tewi HTTPd");145 SendMessage(statuswnd, SB_SETTEXT, 0, (LPARAM) "Stopping Tewi HTTPd"); 146 146 StopTewi(); 147 147 } … … 155 155 if(ev == BN_CLICKED) { 156 156 if(tewi_alive) { 157 SendMessage(status , SB_SETTEXT, 0, (LPARAM) "Stopping Tewi HTTPd");157 SendMessage(statuswnd, SB_SETTEXT, 0, (LPARAM) "Stopping Tewi HTTPd"); 158 158 StopTewi(); 159 159 exiting = TRUE; … … 177 177 monospace = (HFONT)GetStockObject(SYSTEM_FIXED_FONT); 178 178 179 status = CreateStatusWindow(WS_CHILD | WS_VISIBLE | CCS_BOTTOM, NULL, hWnd, GUI_STATUS);180 SendMessage(status , SB_SIMPLE, 0, 0);181 SendMessage(status , SB_SETTEXT, 0, (LPARAM) "Welcome to Tewi HTTPd");182 SendMessage(status , SB_GETRECT, 0, (LPARAM)&src);179 statuswnd = CreateStatusWindow(WS_CHILD | WS_VISIBLE | CCS_BOTTOM, NULL, hWnd, GUI_STATUS); 180 SendMessage(statuswnd, SB_SIMPLE, 0, 0); 181 SendMessage(statuswnd, SB_SETTEXT, 0, (LPARAM) "Welcome to Tewi HTTPd"); 182 SendMessage(statuswnd, SB_GETRECT, 0, (LPARAM)&src); 183 183 184 184 pbtewi_brush = CreateSolidBrush(RGB(0xf7, 0xc9, 0xf3)); … … 199 199 if(was_starting) { 200 200 was_starting = FALSE; 201 SendMessage(status , SB_SETTEXT, 0, (LPARAM) "Started Tewi HTTPd");201 SendMessage(statuswnd, SB_SETTEXT, 0, (LPARAM) "Started Tewi HTTPd"); 202 202 } 203 203 EnableWindow(button_start, FALSE); … … 207 207 if(was_starting) { 208 208 was_starting = FALSE; 209 SendMessage(status , SB_SETTEXT, 0, (LPARAM) "Stopped Tewi HTTPd");209 SendMessage(statuswnd, SB_SETTEXT, 0, (LPARAM) "Stopped Tewi HTTPd"); 210 210 } 211 211 EnableWindow(button_start, TRUE);
Note:
See TracChangeset
for help on using the changeset viewer.