diff options
author | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-27 23:32:18 +0900 |
---|---|---|
committer | Takamichi Horikawa <takamichiho@gmail.com> | 2017-03-27 23:32:18 +0900 |
commit | 0073f2b8befc6163f2970cb7a01e75fffc95994e (patch) | |
tree | aab8d559720269e65b5ad05c07d98a865ff14e57 /win32/toneview.c | |
parent | e2ee18347d45e4620a8279afb8b0bc4a809441ef (diff) |
refactor common file loading functions
Diffstat (limited to 'win32/toneview.c')
-rw-r--r-- | win32/toneview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/win32/toneview.c b/win32/toneview.c index 63d1b73..adda8b6 100644 --- a/win32/toneview.c +++ b/win32/toneview.c @@ -181,7 +181,7 @@ static bool on_create(HWND hwnd, const CREATESTRUCT *cs) { text, WS_VISIBLE | WS_CHILD | WS_TABSTOP, COPY_X, 40 + (TONELABEL_H+5)*i, 100, TONELABEL_H, - hwnd, (HMENU)(ID_COPY0+i), g.hinst, 0); + hwnd, (HMENU)((intptr_t)(ID_COPY0+i)), g.hinst, 0); SetWindowFont(copybutton, g.font, TRUE); } ShowWindow(hwnd, SW_SHOW); @@ -252,7 +252,7 @@ void show_toneview(HINSTANCE hinst, HWND parent) { g.toneviewer = CreateWindowEx(0, MAKEINTATOM(g.toneviewer_class), L"FMPlayer Tone Viewer", - WS_CAPTION | WS_SYSMENU | WS_MINIMIZEBOX | WS_CLIPCHILDREN, + WS_CAPTION | WS_SYSMENU | WS_CLIPCHILDREN, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, parent, 0, g.hinst, 0); } else { |