Skip to content

Commit

Permalink
完善关于对话框
Browse files Browse the repository at this point in the history
  • Loading branch information
sky3141 committed Jan 1, 2019
1 parent 8728aeb commit c6f7061
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
Binary file modified PuzzleGame/Resource.rc
Binary file not shown.
3 changes: 2 additions & 1 deletion PuzzleGame/resource.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@
#define IDR_IMAGE1 103
#define IDI_ICON1 104
#define IDC_SYSLINK1 1002
#define IDC_STATIC1 1003

// Next default values for new objects
//
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NEXT_RESOURCE_VALUE 105
#define _APS_NEXT_COMMAND_VALUE 40001
#define _APS_NEXT_CONTROL_VALUE 1003
#define _APS_NEXT_CONTROL_VALUE 1004
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
1 change: 1 addition & 0 deletions PuzzleGame/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ INT_PTR CALLBACK AboutDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPa
case WM_INITDIALOG:
// 居中对话框(相对父窗口)
{
SendDlgItemMessage(hWnd, IDC_STATIC1, STM_SETICON, (WPARAM)LoadIcon(GetModuleHandle(NULL), MAKEINTRESOURCE(IDI_ICON1)), 0);
HWND hWndOwner = GetParent(hWnd);
RECT rcDlg, rcOwner;

Expand Down

0 comments on commit c6f7061

Please sign in to comment.