#include <windows.h>
#include <tchar.h>
#include "trace.h"
Go to the source code of this file.
◆ ID_HELP
◆ ID_TEXT
◆ WIN32_LEAN_AND_MEAN
◆ CreateMemoryDialog()
Definition at line 54 of file memdlg.c.
55{
62 int nchar;
63
65 if (!hgbl)
66 return -1;
67
69
70
73 lpdt->
x = 10; lpdt->
y = 10;
74 lpdt->
cx = 100; lpdt->
cy = 100;
76 *lpw++ = 0;
77 *lpw++ = 0;
78
81 lpw += nchar;
82
83
84
85
88 lpdit->
x = 10; lpdit->
y = 70;
89 lpdit->
cx = 80; lpdit->
cy = 20;
92
94 *lpw++ = 0xFFFF;
95 *lpw++ = 0x0080;
96
99 lpw += nchar;
101 *lpw++ = 0;
102
103
104
105
108 lpdit->
x = 55; lpdit->
y = 10;
109 lpdit->
cx = 40; lpdit->
cy = 20;
112
113 lpw = (
LPWORD)(lpdit + 1);
114 *lpw++ = 0xFFFF;
115 *lpw++ = 0x0080;
116
119 lpw += nchar;
121 *lpw++ = 0;
122
123
124
125
128 lpdit->
x = 10; lpdit->
y = 10;
129 lpdit->
cx = 40; lpdit->
cy = 20;
132
133 lpw = (
LPWORD)(lpdit + 1);
134 *lpw++ = 0xFFFF;
135 *lpw++ = 0x0082;
136
138 *lpwsz++ == (
WCHAR)*lpszMessage++;
139 );
142 *lpw++ = 0;
143
147 TRACE(
_T(
"DialogBoxIndirect() failed due to invalid handle to parent window: 0x%08X"), hwndOwner);
148 }
else if (
ret == -1) {
150 TRACE(
_T(
"DialogBoxIndirect() failed, GetLastError returned 0x%08X"),
error);
151 }
154}
#define MultiByteToWideChar
LPVOID NTAPI GlobalLock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalFree(HGLOBAL hMem)
BOOL NTAPI GlobalUnlock(HGLOBAL hMem)
HGLOBAL NTAPI GlobalAlloc(UINT uFlags, SIZE_T dwBytes)
LPWORD lpwAlign(LPWORD lpIn)
INT_PTR CALLBACK DialogWndProc(HWND hDlg, UINT message, WPARAM wParam, LPARAM lParam)
DWORD WINAPI GetLastError(void)
#define DialogBoxIndirect
struct DLGITEMTEMPLATE * LPDLGITEMTEMPLATE
struct DLGTEMPLATE * LPDLGTEMPLATE
Referenced by DlgProc().
◆ DialogWndProc()
◆ lpwAlign()
◆ hInst