Subversion Repositories Tewi

Rev

Rev 244 | Rev 253 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 244 Rev 249
Line 1... Line 1...
1
/* $Id: gui.c 244 2024-10-03 20:04:15Z nishi $ */
1
/* $Id: gui.c 249 2024-10-03 20:59:55Z nishi $ */
2
 
2
 
3
#include "../config.h"
3
#include "../config.h"
4
 
4
 
5
#include "gui.h"
5
#include "gui.h"
6
 
6
 
Line 57... Line 57...
57
		MapDialogRect(hWnd, &size);
57
		MapDialogRect(hWnd, &size);
58
 
58
 
59
		hdc = BeginPaint(hWnd, &ps);
59
		hdc = BeginPaint(hWnd, &ps);
60
		ShowBitmapSize(hWnd, hdc, "TEWILOGO", size.left, size.top, WINWIDTH(size), WINWIDTH(size));
60
		ShowBitmapSize(hWnd, hdc, "TEWILOGO", size.left, size.top, WINWIDTH(size), WINWIDTH(size));
61
		EndPaint(hWnd, &ps);
61
		EndPaint(hWnd, &ps);
-
 
62
	}else if(msg == WM_CTLCOLORDLG || msg == WM_CTLCOLORSTATIC){
-
 
63
		HDC dc = (HDC)wp;
-
 
64
		SetBkMode(dc, TRANSPARENT);
-
 
65
		return GetSysColorBrush(COLOR_MENU);
62
	}else{
66
	}else{
63
		return FALSE;
67
		return FALSE;
64
	}
68
	}
65
	return TRUE;
69
	return TRUE;
66
}
70
}
Line 77... Line 81...
77
	if(msg == WM_COMMAND){
81
	if(msg == WM_COMMAND){
78
		int trig = LOWORD(wp);
82
		int trig = LOWORD(wp);
79
		int ev = HIWORD(wp);
83
		int ev = HIWORD(wp);
80
		if(trig == GUI_BUTTON_ABOUT){
84
		if(trig == GUI_BUTTON_ABOUT){
81
			if(ev == BN_CLICKED){
85
			if(ev == BN_CLICKED){
82
				DialogBox(hInst, "VERSIONDLG", hWnd, VersionDialog);
86
				DialogBox(hInst, "VERSIONDLG", hWnd, (DLGPROC)VersionDialog);
83
			}
87
			}
84
		}else if(trig == GUI_BUTTON_START){
88
		}else if(trig == GUI_BUTTON_START){
85
			if(ev == BN_CLICKED){
89
			if(ev == BN_CLICKED){
86
				SendMessage(status, SB_SETTEXT, 0, (LPARAM)"Starting Tewi HTTPd");
90
				SendMessage(status, SB_SETTEXT, 0, (LPARAM)"Starting Tewi HTTPd");
87
				StartTewi();
91
				StartTewi();