#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 56 of file memdlg.c.
57{
64 int nchar;
65
67 if (!hgbl)
68 return -1;
69
71
72
75 lpdt->
x = 10; lpdt->
y = 10;
76 lpdt->
cx = 100; lpdt->
cy = 100;
78 *lpw++ = 0;
79 *lpw++ = 0;
80
83 lpw += nchar;
84
85
86
87
90 lpdit->
x = 10; lpdit->
y = 70;
91 lpdit->
cx = 80; lpdit->
cy = 20;
94
96 *lpw++ = 0xFFFF;
97 *lpw++ = 0x0080;
98
101 lpw += nchar;
103 *lpw++ = 0;
104
105
106
107
110 lpdit->
x = 55; lpdit->
y = 10;
111 lpdit->
cx = 40; lpdit->
cy = 20;
114
115 lpw = (
LPWORD)(lpdit + 1);
116 *lpw++ = 0xFFFF;
117 *lpw++ = 0x0080;
118
121 lpw += nchar;
123 *lpw++ = 0;
124
125
126
127
130 lpdit->
x = 10; lpdit->
y = 10;
131 lpdit->
cx = 40; lpdit->
cy = 20;
134
135 lpw = (
LPWORD)(lpdit + 1);
136 *lpw++ = 0xFFFF;
137 *lpw++ = 0x0082;
138
140 *lpwsz++ == (
WCHAR)*lpszMessage++;
141 );
144 *lpw++ = 0;
145
149 TRACE(
_T(
"DialogBoxIndirect() failed due to invalid handle to parent window: 0x%08X"), hwndOwner);
150 }
else if (
ret == -1) {
152 TRACE(
_T(
"DialogBoxIndirect() failed, GetLastError returned 0x%08X"),
error);
153 }
156}
#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)
LRESULT 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