Changeset 249 in Main for trunk/Server


Ignore:
Timestamp:
Oct 4, 2024, 5:59:55 AM (6 weeks ago)
Author:
Nishi
Message:

fix vc6

Location:
trunk/Server
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Server/Makefile

    r244 r249  
    4949        $(WINDRES) tewi.rc -O coff -o $@
    5050
    51 tewi_vc6.res: tewi.rc ../Binary/tewi.ico
    52         rc /fo$@ tewi.rc
    53 
    5451tewi_bcc.res: tewi.rc ../Binary/tewi.ico
    5552        brc32 -r -fo$@ tewi.rc
     
    5855        $(WINDRES) gui.rc -O coff -o $@
    5956
    60 gui_vc6.res: gui.rc gui.h
    61         rc /fo$@ gui.rc
    62 
    6357gui_bcc.res: gui.rc gui.h
    6458        brc32 -r -fo$@ gui.rc
    6559
     60vc6.res: tewi.rc gui.rc
     61        cat tewi.rc gui.rc > concat.rc
     62        rc /fo$@ concat.rc
     63        rm -f concat.rc
     64
    6665clean:
    67         rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg *.obj
     66        rm -f *.o tewi *.exe *.res *.elf *.sfo *.pbp *.self *.pkg *.obj concat.rc
  • trunk/Server/gui.c

    r244 r249  
    6060                ShowBitmapSize(hWnd, hdc, "TEWILOGO", size.left, size.top, WINWIDTH(size), WINWIDTH(size));
    6161                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);
    6266        }else{
    6367                return FALSE;
     
    8084                if(trig == GUI_BUTTON_ABOUT){
    8185                        if(ev == BN_CLICKED){
    82                                 DialogBox(hInst, "VERSIONDLG", hWnd, VersionDialog);
     86                                DialogBox(hInst, "VERSIONDLG", hWnd, (DLGPROC)VersionDialog);
    8387                        }
    8488                }else if(trig == GUI_BUTTON_START){
  • trunk/Server/gui.rc

    r244 r249  
    55#include "tw_version.h"
    66
    7 PBTEWI BITMAP "../Binary/pbtewi.bmp"
     7PBTEWI BITMAP "..\\Binary\\pbtewi.bmp"
    88TEWILOGO BITMAP "../Binary/tewi.bmp"
    99
     
    1212CAPTION "Version Information"
    1313{
    14         LTEXT "Tewi HTTPd version " TW_VERSION, GUI_TEWI_NAME, 42, 5, 192, 50
     14        LTEXT TW_VERSION_TEXT, GUI_TEWI_NAME, 42, 5, 192, 50
    1515        LTEXT "Original by Nishi <nishi@nishi.boats>", GUI_TEWI_ORIGINAL, 42, 5 + 8, 192, 50
    16         LTEXT "Compilation date: " __DATE__ " " __TIME__, GUI_TEWI_DATE, 42, 5 + 8 + 8, 192, 50
    1716        DEFPUSHBUTTON "&OK", IDOK, 75, 35, 50, 10
    1817}
  • trunk/Server/main.c

    r244 r249  
    88
    99#pragma resource "tewi_bcc.res"
     10
    1011#pragma resource "gui_bcc.res"
    1112
  • trunk/Server/tw_version.h

    r209 r249  
    99
    1010#define TW_VERSION "2.03D\0"
     11#define TW_VERSION_TEXT "Tewi HTTPd version 2.03D"
    1112
    1213const char* tw_get_version(void);
Note: See TracChangeset for help on using the changeset viewer.