MCPcopy Create free account
hub / github.com/cinience/RedisStudio / UserMessageBox

Function UserMessageBox

RedisStudio/UserMessage.cpp:6–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "MessageBoxWhd.h"
5
6void UserMessageBox(HWND hWnd,
7 UINT ErrorCode,
8 LPCTSTR lpExMsg,
9 UINT uType)
10{
11 MessageBoxWhd::MsgType type = MessageBoxWhd::Info;
12 if (uType == MB_ICONWARNING) type = MessageBoxWhd::Warn;
13 else if (uType == MB_ICONERROR) type = MessageBoxWhd::Error;
14 else if (uType == MB_ICONINFORMATION) type = MessageBoxWhd::Info;
15
16 MessageBoxWhd* pWhd = new MessageBoxWhd(type, ErrorCode, lpExMsg);
17 if( pWhd == NULL ) { return; }
18 pWhd->Create(hWnd, NULL, UI_CLASSSTYLE_DIALOG, 0, 0, 0, 0, 0, NULL);
19 pWhd->CenterWindow();
20 pWhd->ShowModal();
21}

Callers 14

OnSelectChangedMethod · 0.85
OnUnConnectedMethod · 0.85
OnUpdateMethod · 0.85
LoadConfigMethod · 0.85
SaveConfigMethod · 0.85
OnDelConnInfoMethod · 0.85
OnAltConnInfoMethod · 0.85
OnAddInfoMethod · 0.85
OnAltInfoMethod · 0.85
OnItemDBClickMethod · 0.85
OnItemActiveForTreeMethod · 0.85
OnCommitMethod · 0.85

Calls 3

CenterWindowMethod · 0.80
ShowModalMethod · 0.80
CreateMethod · 0.45

Tested by

no test coverage detected