ReactOS  0.4.13-dev-455-g28ed234
edittest.c File Reference
#include <windows.h>
#include "utils.h"
Include dependency graph for edittest.c:

Go to the source code of this file.

Macros

#define CREATEWINDOW   106
 
#define CREATEWINDOWEX   107
 
#define CREATEWINDOWW   108
 
#define ResultX   0
 
#define ResultY   305
 
#define NOTIFYX   350
 
#define NOTIFYY   285
 
#define BUFFERLEN   80 /* Size of buffer to hold result strings */
 
#define TestStr   "The quick brown fox jumps over the lazy dog"
 
#define TestStrW   L"This is a WCHAR string" /* Wide to support unicode edits */
 
#define MAXMESSAGEBUTTONS   42
 
#define ReplaceTextStr   "->> Replaced!! <<-"
 
#define NUMBERBUTTONS   26
 

Typedefs

typedef void FunctionHandler(HWND, DWORD, WPARAM, LPARAM)
 
typedef FunctionHandlerLPFUNCTIONHANDLER
 

Functions

VOID PrintTextXY (char *Text, int x, int y, int len)
 
static VOID HandlePrintReturnHex (HWND handle, DWORD Msg, WPARAM wParam, LPARAM lParam)
 
static VOID HandleSetHandlePrintHex (HWND handle, DWORD Msg, WPARAM wParam, LPARAM lParam)
 
static VOID HandlePrintReturnStr (HWND handle, DWORD Msg, WPARAM wParam, LPARAM lParam)
 
static VOID HandlePrintRect (HWND handle, DWORD Msg, WPARAM wParam, LPARAM lParam)
 
static VOID HandlePrintPasswdChar (HWND handle, DWORD Msg, WPARAM wParam, LPARAM lParam)
 
HWND CreateCheckButton (const char *lpWindowName, DWORD xSize, DWORD id)
 
HWND CreatePushButton (const char *lpWindowName, DWORD xSize, DWORD id, DWORD Style)
 
VOID ReadNHide ()
 
VOID ForwardToSecondPage ()
 
VOID BackToFirstPage ()
 
VOID BackToInitialPage ()
 
LRESULT CALLBACK WndProc (HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
 
HWND RegisterAndCreateWindow (HINSTANCE hInst, const char *className, const char *title)
 
int WINAPI WinMain (HINSTANCE hInst, HINSTANCE hPrevInst, LPSTR cmdParam, int cmdShow)
 

Variables

HWND g_hwnd = NULL
 
HINSTANCE g_hInst = NULL
 
int pos = 10
 
int n = 0
 
int yButPos = 10
 
int xButPos = 10
 
DWORD EditStyle = 0
 
DWORD EditWidth = 240
 
DWORD EditHeight = 250
 
BOOL UnicodeUsed = FALSE
 
HWND hwndEdit = NULL
 
POINTL point ={10,3}
 
RECT rect = {0,0,20,20}
 
RECT rect2
 
DWORD StartP
 
DWORD EndP
 
charAllocatedText
 
charNewText = "New text for the edit control"
 
wchar_tNewTextW = L"New text for the edit control in UNICODE"
 
char TextBuffer [BUFFERLEN] ={'R','e','s','u','l','t',':',' '}
 
struct {
   char *   Text
 
   DWORD   MsgCode
 
   WPARAM   wParam
 
   LPARAM   lParam
 
   LPFUNCTIONHANDLER   Handler
 
Msg []
 
DWORD EditStyles []
 
charStyleNames []
 
HWND Buttons [NUMBERBUTTONS]
 
HWND MessageButtons [MAXMESSAGEBUTTONS]
 
HWND Back1But
 
HWND Back2But
 
HWND NextBut
 

Macro Definition Documentation

◆ BUFFERLEN

#define BUFFERLEN   80 /* Size of buffer to hold result strings */

Definition at line 25 of file edittest.c.

◆ CREATEWINDOW

#define CREATEWINDOW   106

Definition at line 15 of file edittest.c.

◆ CREATEWINDOWEX

#define CREATEWINDOWEX   107

Definition at line 16 of file edittest.c.

◆ CREATEWINDOWW

#define CREATEWINDOWW   108

Definition at line 17 of file edittest.c.

◆ MAXMESSAGEBUTTONS

#define MAXMESSAGEBUTTONS   42

Definition at line 32 of file edittest.c.

◆ NOTIFYX

#define NOTIFYX   350

Definition at line 22 of file edittest.c.

◆ NOTIFYY

#define NOTIFYY   285

Definition at line 23 of file edittest.c.

◆ NUMBERBUTTONS

#define NUMBERBUTTONS   26

Definition at line 260 of file edittest.c.

◆ ReplaceTextStr

#define ReplaceTextStr   "->> Replaced!! <<-"

Definition at line 54 of file edittest.c.

◆ ResultX

#define ResultX   0

Definition at line 19 of file edittest.c.

◆ ResultY

#define ResultY   305

Definition at line 20 of file edittest.c.

◆ TestStr

#define TestStr   "The quick brown fox jumps over the lazy dog"

Definition at line 28 of file edittest.c.

◆ TestStrW

#define TestStrW   L"This is a WCHAR string" /* Wide to support unicode edits */

Definition at line 30 of file edittest.c.

Typedef Documentation

◆ FunctionHandler

typedef void FunctionHandler(HWND, DWORD, WPARAM, LPARAM)

Definition at line 62 of file edittest.c.

◆ LPFUNCTIONHANDLER

Definition at line 63 of file edittest.c.

Function Documentation

◆ BackToFirstPage()

VOID BackToFirstPage ( )

Definition at line 341 of file edittest.c.

342  {
343  int i;
344  for (i=0;i<26;i++)ShowWindow(MessageButtons[i],SW_SHOW);
349  }
HWND MessageButtons[MAXMESSAGEBUTTONS]
Definition: edittest.c:262
HWND NextBut
Definition: edittest.c:264
#define SW_HIDE
Definition: winuser.h:762
HWND Back1But
Definition: edittest.c:263
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HWND Back2But
Definition: edittest.c:263
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define SW_SHOW
Definition: winuser.h:769
#define MAXMESSAGEBUTTONS
Definition: edittest.c:32

Referenced by WndProc().

◆ BackToInitialPage()

VOID BackToInitialPage ( )

Definition at line 352 of file edittest.c.

353  {
354  int i;
356  for (i=0 ; i< NUMBERBUTTONS ; i++) {ShowWindow(Buttons[i],SW_SHOW);}
357  for (i=0;i<26;i++)ShowWindow(MessageButtons[i],SW_HIDE);
360  }
HWND MessageButtons[MAXMESSAGEBUTTONS]
Definition: edittest.c:262
HWND NextBut
Definition: edittest.c:264
#define SW_HIDE
Definition: winuser.h:762
HWND hwndEdit
Definition: edittest.c:48
HWND Back1But
Definition: edittest.c:263
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI DestroyWindow(_In_ HWND)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
HWND Buttons[NUMBERBUTTONS]
Definition: edittest.c:261
#define SW_SHOW
Definition: winuser.h:769
#define NUMBERBUTTONS
Definition: edittest.c:260

Referenced by WndProc().

◆ CreateCheckButton()

HWND CreateCheckButton ( const char lpWindowName,
DWORD  xSize,
DWORD  id 
)

Definition at line 268 of file edittest.c.

269  {
270  HWND h;
271  h = CreateWindowEx(0,
272  "BUTTON",
273  lpWindowName,
275  xButPos, /* x */
276  yButPos, /* y */
277  xSize, /* nWidth */
278  20, /* nHeight */
279  g_hwnd,
280  UlongToHandle(id),
281  g_hInst,
282  NULL
283  );
284  yButPos += 21;
285  return h;
286  }
int yButPos
Definition: edittest.c:39
#define WS_CHILD
Definition: pedump.c:617
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
#define CreateWindowEx
Definition: winuser.h:5621
smooth NULL
Definition: ftsmooth.c:416
#define BS_AUTOCHECKBOX
Definition: pedump.c:654
HWND g_hwnd
Definition: edittest.c:34
#define UlongToHandle(ul)
Definition: basetsd.h:97
int xButPos
Definition: edittest.c:40
HINSTANCE g_hInst
Definition: edittest.c:35
#define WS_VISIBLE
Definition: pedump.c:620

Referenced by WndProc().

◆ CreatePushButton()

HWND CreatePushButton ( const char lpWindowName,
DWORD  xSize,
DWORD  id,
DWORD  Style 
)

Definition at line 289 of file edittest.c.

290  {
291 
292  HWND h = CreateWindow("BUTTON",
293  lpWindowName,
295  xButPos, // x
296  yButPos, // y
297  xSize, // nWidth
298  20, // nHeight
299  g_hwnd,
300  (HMENU)(ULONG_PTR) id,
301  g_hInst,
302  NULL
303  );
304 
305  yButPos += 21;
306  return h;
307  }
#define CreateWindow
Definition: winuser.h:5620
int yButPos
Definition: edittest.c:39
#define WS_CHILD
Definition: pedump.c:617
GLfloat GLfloat GLfloat GLfloat h
Definition: glext.h:7723
uint32_t ULONG_PTR
Definition: typedefs.h:63
smooth NULL
Definition: ftsmooth.c:416
HWND g_hwnd
Definition: edittest.c:34
const DWORD Style
Definition: appswitch.c:71
#define BS_PUSHBUTTON
Definition: pedump.c:651
int xButPos
Definition: edittest.c:40
HINSTANCE g_hInst
Definition: edittest.c:35
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:60

Referenced by WndProc().

◆ ForwardToSecondPage()

VOID ForwardToSecondPage ( )

Definition at line 329 of file edittest.c.

330  {
331  int i;
332  for (i=0;i<26;i++)ShowWindow(MessageButtons[i],SW_HIDE);
335 
338  }
HWND MessageButtons[MAXMESSAGEBUTTONS]
Definition: edittest.c:262
HWND NextBut
Definition: edittest.c:264
#define SW_HIDE
Definition: winuser.h:762
HWND Back1But
Definition: edittest.c:263
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HWND Back2But
Definition: edittest.c:263
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define SW_SHOW
Definition: winuser.h:769
#define MAXMESSAGEBUTTONS
Definition: edittest.c:32

Referenced by WndProc().

◆ HandlePrintPasswdChar()

static VOID HandlePrintPasswdChar ( HWND  handle,
DWORD  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 149 of file edittest.c.

150  {
151  HDC hdc;
153 
154  int s;
155 
156  if (ret)
157  {
158  s = 1;
159  TextBuffer[8] = (char)(ret);
160  }
161  else
162  {
163  TextBuffer[8] = 'N';
164  TextBuffer[9] = 'U';
165  TextBuffer[10] = 'L';
166  TextBuffer[11] = 'L';
167  s = 4;
168  }
169 
170  hdc = GetDC (g_hwnd);
172 
174  ReleaseDC (g_hwnd, hdc);
176  }
HGDIOBJ WINAPI GetStockObject(_In_ int)
HDC WINAPI GetDC(_In_opt_ HWND)
static HDC
Definition: imagelist.c:92
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
#define ResultY
Definition: edittest.c:20
WPARAM wParam
Definition: edittest.c:183
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
unsigned char
Definition: typeof.h:29
LPARAM lParam
Definition: edittest.c:184
HWND g_hwnd
Definition: edittest.c:34
BOOL WINAPI ValidateRect(_In_opt_ HWND, _In_opt_ LPCRECT)
int ret
HDC hdc
Definition: main.c:9
GLdouble s
Definition: gl.h:2039
struct @1573 Msg[]
char TextBuffer[BUFFERLEN]
Definition: edittest.c:60
#define SendMessage
Definition: winuser.h:5709
RECT rect
Definition: edittest.c:51
#define TextOut
Definition: wingdi.h:4461
#define ResultX
Definition: edittest.c:19
#define SYSTEM_FIXED_FONT
Definition: wingdi.h:911

◆ HandlePrintRect()

static VOID HandlePrintRect ( HWND  handle,
DWORD  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 131 of file edittest.c.

132  {
133  TextBuffer[8] = (char)(BUFFERLEN - 8); /* Setting the max size to put chars in first byte */
135 
136  htoa(rect.top,&TextBuffer[8]);
137  TextBuffer[8+8] = ' ';
138  htoa(rect.bottom,&TextBuffer[8+8+1]);
139  TextBuffer[8+8+8+1] = ' ';
140  htoa(rect.left,&TextBuffer[8+8+8+1+1]);
141  TextBuffer[8+8+8+8+1+1] = ' ';
142  htoa(rect.right,&TextBuffer[8+8+8+8+1+1+1]);
143 
145  }
VOID PrintTextXY(char *Text, int x, int y, int len)
Definition: edittest.c:66
LONG top
Definition: windef.h:292
LONG left
Definition: windef.h:291
#define ResultY
Definition: edittest.c:20
WPARAM wParam
Definition: edittest.c:183
LONG right
Definition: windef.h:293
VOID htoa(unsigned int val, char *buf)
Definition: utils.c:10
#define BUFFERLEN
Definition: edittest.c:25
unsigned char
Definition: typeof.h:29
LPARAM lParam
Definition: edittest.c:184
struct @1573 Msg[]
char TextBuffer[BUFFERLEN]
Definition: edittest.c:60
#define SendMessage
Definition: winuser.h:5709
RECT rect
Definition: edittest.c:51
LONG bottom
Definition: windef.h:294
#define ResultX
Definition: edittest.c:19

◆ HandlePrintReturnHex()

static VOID HandlePrintReturnHex ( HWND  handle,
DWORD  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 79 of file edittest.c.

80  {
81  int ret;
83  htoa(ret,&TextBuffer[8]);
85  }
VOID PrintTextXY(char *Text, int x, int y, int len)
Definition: edittest.c:66
#define ResultY
Definition: edittest.c:20
WPARAM wParam
Definition: edittest.c:183
VOID htoa(unsigned int val, char *buf)
Definition: utils.c:10
LPARAM lParam
Definition: edittest.c:184
int ret
struct @1573 Msg[]
char TextBuffer[BUFFERLEN]
Definition: edittest.c:60
#define SendMessage
Definition: winuser.h:5709
#define ResultX
Definition: edittest.c:19

◆ HandlePrintReturnStr()

static VOID HandlePrintReturnStr ( HWND  handle,
DWORD  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 121 of file edittest.c.

122  {
123  int ret;
124  TextBuffer[8] = (char)(BUFFERLEN - 8); /* Setting the max size to put chars in first byte */
127  }
VOID PrintTextXY(char *Text, int x, int y, int len)
Definition: edittest.c:66
#define ResultY
Definition: edittest.c:20
WPARAM wParam
Definition: edittest.c:183
#define BUFFERLEN
Definition: edittest.c:25
unsigned char
Definition: typeof.h:29
LPARAM lParam
Definition: edittest.c:184
int ret
struct @1573 Msg[]
char TextBuffer[BUFFERLEN]
Definition: edittest.c:60
#define SendMessage
Definition: winuser.h:5709
#define ResultX
Definition: edittest.c:19

◆ HandleSetHandlePrintHex()

static VOID HandleSetHandlePrintHex ( HWND  handle,
DWORD  Msg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Definition at line 89 of file edittest.c.

90  {
91  LPVOID pMem;
92  HANDLE hNewBuffer;
93  int ret;
94 
96  if (UnicodeUsed)
97  {
98  hNewBuffer = LocalAlloc(LMEM_MOVEABLE | LMEM_ZEROINIT, 100);
99  pMem = LocalLock(hNewBuffer);
100  strcpyw_((wchar_t*)pMem,NewTextW);
101  }
102  else
103  {
104  hNewBuffer = LocalAlloc(LMEM_MOVEABLE | LMEM_ZEROINIT,50);
105  pMem = LocalLock(hNewBuffer);
106  strcpy_((char*)pMem,NewText);
107  }
108 
109  LocalUnlock(pMem);
110  hNewBuffer = LocalHandle(pMem);
111 
112  /* Updates the buffer and displays new buffer */
113  ret = SendMessage(handle, EM_SETHANDLE, (WPARAM)hNewBuffer, 0L);
114 
115  htoa(ret,&TextBuffer[8]);
117  }
VOID PrintTextXY(char *Text, int x, int y, int len)
Definition: edittest.c:66
BOOL NTAPI LocalUnlock(HLOCAL hMem)
Definition: heapmem.c:1788
VOID strcpyw_(wchar_t *dst, wchar_t *src)
Definition: utils.c:29
BOOL UnicodeUsed
Definition: edittest.c:46
UINT_PTR WPARAM
Definition: windef.h:207
#define ResultY
Definition: edittest.c:20
VOID htoa(unsigned int val, char *buf)
Definition: utils.c:10
#define EM_SETHANDLE
Definition: winuser.h:1970
VOID strcpy_(char *dst, const char *src)
Definition: utils.c:23
#define LMEM_ZEROINIT
Definition: winbase.h:356
#define LMEM_MOVEABLE
Definition: winbase.h:350
int ret
static const WCHAR L[]
Definition: oid.c:1250
#define EM_GETHANDLE
Definition: winuser.h:1950
char * NewText
Definition: edittest.c:57
char TextBuffer[BUFFERLEN]
Definition: edittest.c:60
HLOCAL NTAPI LocalFree(HLOCAL hMem)
Definition: heapmem.c:1577
LPVOID NTAPI LocalLock(HLOCAL hMem)
Definition: heapmem.c:1599
#define SendMessage
Definition: winuser.h:5709
HLOCAL NTAPI LocalAlloc(UINT uFlags, SIZE_T dwBytes)
Definition: heapmem.c:1373
#define ResultX
Definition: edittest.c:19
HLOCAL NTAPI LocalHandle(LPCVOID pMem)
Definition: heapmem.c:1588
wchar_t * NewTextW
Definition: edittest.c:58

◆ PrintTextXY()

VOID PrintTextXY ( char Text,
int  x,
int  y,
int  len 
)

Definition at line 66 of file edittest.c.

67 {
68  HDC hdc;
69  hdc = GetDC (g_hwnd);
71 
72  TextOut (hdc, x,y,Text,len);
73  ReleaseDC (g_hwnd, hdc);
75 }
HGDIOBJ WINAPI GetStockObject(_In_ int)
HDC WINAPI GetDC(_In_opt_ HWND)
static HDC
Definition: imagelist.c:92
HGDIOBJ WINAPI SelectObject(_In_ HDC, _In_ HGDIOBJ)
Definition: dc.c:1497
GLint GLint GLint GLint GLint x
Definition: gl.h:1548
char * Text
Definition: edittest.c:181
int WINAPI ReleaseDC(_In_opt_ HWND, _In_ HDC)
HWND g_hwnd
Definition: edittest.c:34
BOOL WINAPI ValidateRect(_In_opt_ HWND, _In_opt_ LPCRECT)
HDC hdc
Definition: main.c:9
GLenum GLsizei len
Definition: glext.h:6722
GLint GLint GLint GLint GLint GLint y
Definition: gl.h:1548
RECT rect
Definition: edittest.c:51
#define TextOut
Definition: wingdi.h:4461
#define SYSTEM_FIXED_FONT
Definition: wingdi.h:911

Referenced by HandlePrintRect(), HandlePrintReturnHex(), HandlePrintReturnStr(), HandleSetHandlePrintHex(), and WndProc().

◆ ReadNHide()

VOID ReadNHide ( )

Definition at line 310 of file edittest.c.

311  {
312  int i;
313  EditStyle = 0;
314  for (i=0 ; i< 19 ; i++)
315  {
317  EditStyle |= EditStyles[i];
319  }
320 
321  for (; i< NUMBERBUTTONS ; i++)ShowWindow(Buttons[i],SW_HIDE);
322  for (i=0 ; i< 26 ; i++) ShowWindow(MessageButtons[i],SW_SHOW);
323 
326  }
HWND MessageButtons[MAXMESSAGEBUTTONS]
Definition: edittest.c:262
HWND NextBut
Definition: edittest.c:264
#define SW_HIDE
Definition: winuser.h:762
HWND Back1But
Definition: edittest.c:263
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
HWND Buttons[NUMBERBUTTONS]
Definition: edittest.c:261
#define BM_GETCHECK
Definition: winuser.h:1879
#define SW_SHOW
Definition: winuser.h:769
#define NUMBERBUTTONS
Definition: edittest.c:260
DWORD EditStyles[]
Definition: edittest.c:246
#define BST_CHECKED
Definition: winuser.h:197
#define SendMessage
Definition: winuser.h:5709
DWORD EditStyle
Definition: edittest.c:42

Referenced by WndProc().

◆ RegisterAndCreateWindow()

HWND RegisterAndCreateWindow ( HINSTANCE  hInst,
const char className,
const char title 
)

Definition at line 580 of file edittest.c.

583 {
584  WNDCLASSEX wc;
585  HWND hwnd;
586 
587  g_hInst = hInst;
588 
589  wc.cbSize = sizeof (WNDCLASSEX);
590 
591  wc.lpfnWndProc = WndProc; /* window procedure */
592  wc.hInstance = hInst; /* owner of the class */
593 
594  wc.lpszClassName = className;
595  wc.hCursor = LoadCursor ( 0, (LPCTSTR)IDC_ARROW );
596  wc.hbrBackground = (HBRUSH)(COLOR_BTNFACE + 1);
597  wc.style = CS_HREDRAW | CS_VREDRAW;
598  wc.cbClsExtra = 0;
599  wc.cbWndExtra = 0;
600  wc.hIcon = 0;
601  wc.hIconSm = 0;
602  wc.lpszMenuName = 0;
603 
604  if ( !RegisterClassEx ( &wc ) )
605  return NULL;
606 
607  hwnd = CreateWindowEx (
608  0, /* dwStyleEx */
609  className, /* class name */
610  title, /* window title */
611 
612  WS_OVERLAPPEDWINDOW, /* dwStyle */
613 
614  1, /* x */
615  1, /* y */
616  560, /* width */
617  350, /* height */
618  NULL, /* hwndParent */
619  NULL, /* hMenu */
620  hInst,
621  0
622  );
623 
624  if (!hwnd) return NULL;
625 
627  UpdateWindow (hwnd);
628 
629  return hwnd;
630 }
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
UINT style
Definition: winuser.h:3155
LPCSTR lpszMenuName
Definition: winuser.h:3163
const CHAR * LPCTSTR
Definition: xmlstorage.h:193
#define RegisterClassEx
Definition: winuser.h:5703
HCURSOR hCursor
Definition: winuser.h:3161
WNDPROC lpfnWndProc
Definition: winuser.h:3156
LPCSTR lpszClassName
Definition: winuser.h:3164
BOOL WINAPI UpdateWindow(_In_ HWND)
#define CS_HREDRAW
Definition: winuser.h:648
HICON hIconSm
Definition: winuser.h:3165
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
HINSTANCE hInstance
Definition: winuser.h:3159
#define CreateWindowEx
Definition: winuser.h:5621
smooth NULL
Definition: ftsmooth.c:416
UINT cbSize
Definition: winuser.h:3154
#define SW_SHOW
Definition: winuser.h:769
HBRUSH hbrBackground
Definition: winuser.h:3162
#define CS_VREDRAW
Definition: winuser.h:653
int cbWndExtra
Definition: winuser.h:3158
HICON hIcon
Definition: winuser.h:3160
#define COLOR_BTNFACE
Definition: winuser.h:918
#define LoadCursor
Definition: winuser.h:5678
int cbClsExtra
Definition: winuser.h:3157
HINSTANCE hInst
Definition: dxdiag.c:13
HINSTANCE g_hInst
Definition: edittest.c:35
#define IDC_ARROW
Definition: winuser.h:682
#define WS_OVERLAPPEDWINDOW
Definition: pedump.c:637
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
Definition: edittest.c:364
WNDCLASSEXA WNDCLASSEX
Definition: winuser.h:5585
static char title[]
Definition: ps.c:92

Referenced by WinMain().

◆ WinMain()

int WINAPI WinMain ( HINSTANCE  hInst,
HINSTANCE  hPrevInst,
LPSTR  cmdParam,
int  cmdShow 
)

Definition at line 634 of file edittest.c.

635 {
636  char className [] = "Edit Control Test";
637  MSG msg;
638 
639  RegisterAndCreateWindow ( hInst, className, "Edit Control Styles Test" );
640 
641  // Message loop
642  while (GetMessage (&msg, NULL, 0, 0))
643  {
645  DispatchMessage (&msg);
646  }
647  return msg.wParam;
648 
649 }
#define DispatchMessage
Definition: winuser.h:5631
BOOL WINAPI TranslateMessage(_In_ const MSG *)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
Definition: twain.h:1827
HWND RegisterAndCreateWindow(HINSTANCE hInst, const char *className, const char *title)
Definition: edittest.c:580
smooth NULL
Definition: ftsmooth.c:416
HINSTANCE hInst
Definition: dxdiag.c:13
#define GetMessage
Definition: winuser.h:5656
#define msg(x)
Definition: auth_time.c:54

◆ WndProc()

LRESULT CALLBACK WndProc ( HWND  hwnd,
UINT  msg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 364 of file edittest.c.

365 {
366  int i;
367  switch ( msg )
368  {
369  case WM_CREATE:
370  g_hwnd = hwnd;
371 
372  /* ---- Initial page ---- */
373 
374  for (i = 0 ; i < 14 ; i++)
375  Buttons[i] = CreateCheckButton(StyleNames[i],150,500+i);
376 
377  xButPos += 160;
378  yButPos = 10;
379 
380  for (; i < 19 ; i++)
381  Buttons[i] = CreateCheckButton(StyleNames[i],140,500+i);
382 
383  Buttons[i++] = CreatePushButton("Width +",70,100,WS_VISIBLE);
384  Buttons[i++] = CreatePushButton("Width -",70,101,WS_VISIBLE);
385 
386  Buttons[i++] = CreatePushButton("Heigth +",70,102,WS_VISIBLE);
387  Buttons[i++] = CreatePushButton("Heigth -",70,103,WS_VISIBLE);
388 
389  Buttons[i++] = CreatePushButton("CreateWindowA",140,CREATEWINDOW,WS_VISIBLE);
390  Buttons[i++] = CreatePushButton("CreateWindowExA",140,CREATEWINDOWEX,WS_VISIBLE);
391  Buttons[i++] = CreatePushButton("CreateWindowExW",140,CREATEWINDOWW,WS_VISIBLE);
392 
393 
394  /* ---- The 1st page of buttons ---- */
395 
396  xButPos = 0;
397  yButPos = 10;
398 
399  for (i = 0 ; i < 14 ; i++)
400  MessageButtons[i] = CreatePushButton(Msg[i].Text,170,600+i,0);
401 
402  xButPos += 180;
403  yButPos = 10;
404 
405  for (; i < 26 ; i++)
406  MessageButtons[i] = CreatePushButton(Msg[i].Text,170,600+i,0);
407 
408  Back1But = CreatePushButton("Back - destroys edit",170,400,0);
409  NextBut = CreatePushButton("Next",170,401,0);
410 
411  /* ---- The 2nd page of buttons ------*/
412 
413  xButPos = 0;
414  yButPos = 10;
415 
416  for (; i<40; i++)
417  MessageButtons[i] = CreatePushButton(Msg[i].Text,170,600+i,0);
418 
419  xButPos += 180;
420  yButPos = 10;
421 
422  for (; i < MAXMESSAGEBUTTONS ; i++)
423  MessageButtons[i] = CreatePushButton(Msg[i].Text,170,600+i,0);
424 
425  Back2But = CreatePushButton("Back",170,402,0);
426 
427  break;
428 
429  case WM_COMMAND:
430  if (LOWORD(wParam) >= 600)
431  {
432  Msg[LOWORD(wParam)-600].Handler(hwndEdit,
433  Msg[LOWORD(wParam)-600].MsgCode,
434  Msg[LOWORD(wParam)-600].wParam,
435  Msg[LOWORD(wParam)-600].lParam);
436  break;
437  }
438 
439  switch(LOWORD(wParam)){
440 
441  case 100:
442  EditWidth += 10;
443  break;
444 
445  case 101:
446  EditWidth -= 10;
447  break;
448 
449  case 102:
450  EditHeight += 10;
451  break;
452 
453  case 103:
454  EditHeight -= 10;
455  break;
456 
457  case 400:
459  break;
460 
461  case 401:
463  break;
464 
465  case 402:
466  BackToFirstPage();
467  break;
468 
469  case CREATEWINDOW:
470  UnicodeUsed = FALSE;
471  ReadNHide();
472  hwndEdit = CreateWindow("EDIT",
473  TestStr,
475  350,
476  10,
477  EditWidth,
478  EditHeight,
479  g_hwnd,
480  NULL,
481  g_hInst,
482  NULL);
483  break;
484 
485  case CREATEWINDOWEX:
486  UnicodeUsed = FALSE;
487  ReadNHide();
489  "EDIT",
490  TestStr,
492  350,
493  10,
494  EditWidth,
495  EditHeight,
496  g_hwnd,
497  NULL,
498  g_hInst,
499  NULL);
500  break;
501 
502  case CREATEWINDOWW:
503  UnicodeUsed = TRUE;
504  ReadNHide();
506  L"EDIT",
507  TestStrW,
509  350,
510  10,
511  EditWidth,
512  EditHeight,
513  g_hwnd,
514  NULL,
515  g_hInst,
516  NULL);
517  break;
518  }
519 
520  if (lParam == (LPARAM)hwndEdit)
521  switch(HIWORD(wParam))
522  {
523  case EN_CHANGE:
524  PrintTextXY("EN_CHANGE notification",NOTIFYX,NOTIFYY,22);
525  break;
526 
527  case EN_ERRSPACE:
528  PrintTextXY("EN_ERRSPACE notification",NOTIFYX,NOTIFYY,24);
529  break;
530 
531  /* --- FIXME not defined in w32api-2.3 headers
532  case H_SCROLL:
533  PrintTextXY("H_SCROLL notification",NOTIFYX,NOTIFYY,21);
534  break; */
535 
536  /* --- FIXME not defined in w32api-2.3 headers
537  case KILL_FOCUS:
538  PrintTextXY("KILL_FOCUS notification",NOTIFYX,NOTIFYY,23);
539  break; */
540 
541  /* --- FIXME not defined in w32api-2.3 headers
542  case EN_MAXTEST:
543  PrintTextXY("EN_MAXTEXT notification",NOTIFYX,NOTIFYY,23);
544  break; */
545 
546  case EN_SETFOCUS:
547  PrintTextXY("EN_SETFOCUS notification",NOTIFYX,NOTIFYY,24);
548  break;
549 
550  case EN_UPDATE:
551  PrintTextXY("EN_UPDATE notification",NOTIFYX,NOTIFYY + 20,22);
552  break;
553 
554  case EN_VSCROLL:
555  PrintTextXY("EN_VSCROLL notification",NOTIFYX,NOTIFYY,23);
556  break;
557 
558  }
559 
560  break;
561 
562  case WM_SIZE :
563  return 0;
564 
565  case WM_CLOSE:
567  return 0;
568 
569  case WM_QUERYENDSESSION:
570  return 0;
571 
572  case WM_DESTROY:
573  PostQuitMessage(0);
574  return 0;
575  }
576  return DefWindowProc ( hwnd, msg, wParam, lParam );
577 }
#define CREATEWINDOW
Definition: edittest.c:15
const DOCKBAR PVOID HWND HWND * hwnd
Definition: tooldock.h:22
VOID PrintTextXY(char *Text, int x, int y, int len)
Definition: edittest.c:66
HWND MessageButtons[MAXMESSAGEBUTTONS]
Definition: edittest.c:262
HWND NextBut
Definition: edittest.c:264
#define TRUE
Definition: types.h:120
#define NOTIFYY
Definition: edittest.c:23
#define TestStr
Definition: edittest.c:28
#define CreateWindow
Definition: winuser.h:5620
#define CREATEWINDOWW
Definition: edittest.c:17
BOOL UnicodeUsed
Definition: edittest.c:46
HWND hwndEdit
Definition: edittest.c:48
HWND Back1But
Definition: edittest.c:263
#define WM_QUERYENDSESSION
Definition: winuser.h:1604
int yButPos
Definition: edittest.c:39
#define WS_CHILD
Definition: pedump.c:617
#define CREATEWINDOWEX
Definition: edittest.c:16
WPARAM wParam
Definition: edittest.c:183
char * Text
Definition: edittest.c:181
BOOL WINAPI DestroyWindow(_In_ HWND)
HWND Back2But
Definition: edittest.c:263
#define TestStrW
Definition: edittest.c:30
VOID BackToFirstPage()
Definition: edittest.c:341
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
#define EN_SETFOCUS
Definition: winuser.h:1988
VOID ForwardToSecondPage()
Definition: edittest.c:329
HWND Buttons[NUMBERBUTTONS]
Definition: edittest.c:261
#define NOTIFYX
Definition: edittest.c:22
HWND CreatePushButton(const char *lpWindowName, DWORD xSize, DWORD id, DWORD Style)
Definition: edittest.c:289
#define CreateWindowEx
Definition: winuser.h:5621
HWND CreateCheckButton(const char *lpWindowName, DWORD xSize, DWORD id)
Definition: edittest.c:268
smooth NULL
Definition: ftsmooth.c:416
#define EN_ERRSPACE
Definition: winuser.h:1984
LONG_PTR LPARAM
Definition: windef.h:208
DWORD EditHeight
Definition: edittest.c:44
#define DefWindowProc
Definition: ros2win.h:31
#define WM_DESTROY
Definition: winuser.h:1591
LPARAM lParam
Definition: edittest.c:184
HWND g_hwnd
Definition: edittest.c:34
#define WM_SIZE
Definition: winuser.h:1593
#define WM_CLOSE
Definition: winuser.h:1603
char * StyleNames[]
Definition: edittest.c:253
DWORD MsgCode
Definition: edittest.c:182
static const WCHAR L[]
Definition: oid.c:1250
VOID ReadNHide()
Definition: edittest.c:310
HWND WINAPI CreateWindowExW(_In_ DWORD dwExStyle, _In_opt_ LPCWSTR lpClassName, _In_opt_ LPCWSTR lpWindowName, _In_ DWORD dwStyle, _In_ int X, _In_ int Y, _In_ int nWidth, _In_ int nHeight, _In_opt_ HWND hWndParent, _In_opt_ HMENU hMenu, _In_opt_ HINSTANCE hInstance, _In_opt_ LPVOID lpParam)
DWORD EditWidth
Definition: edittest.c:43
struct @1573 Msg[]
#define WM_COMMAND
Definition: winuser.h:1716
#define EN_VSCROLL
Definition: winuser.h:1990
int xButPos
Definition: edittest.c:40
HINSTANCE g_hInst
Definition: edittest.c:35
#define WS_EX_CLIENTEDGE
Definition: winuser.h:384
#define msg(x)
Definition: auth_time.c:54
#define WM_CREATE
Definition: winuser.h:1590
#define MAXMESSAGEBUTTONS
Definition: edittest.c:32
#define HIWORD(l)
Definition: typedefs.h:246
#define EN_UPDATE
Definition: winuser.h:1989
VOID BackToInitialPage()
Definition: edittest.c:352
#define WS_VISIBLE
Definition: pedump.c:620
#define LOWORD(l)
Definition: pedump.c:82
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
DWORD EditStyle
Definition: edittest.c:42
#define EN_CHANGE
Definition: winuser.h:1983

Referenced by RegisterAndCreateWindow().

Variable Documentation

◆ AllocatedText

char* AllocatedText

Definition at line 56 of file edittest.c.

◆ Back1But

HWND Back1But

◆ Back2But

HWND Back2But

Definition at line 263 of file edittest.c.

Referenced by BackToFirstPage(), ForwardToSecondPage(), and WndProc().

◆ Buttons

HWND Buttons[NUMBERBUTTONS]

Definition at line 261 of file edittest.c.

Referenced by BackToInitialPage(), ReadNHide(), and WndProc().

◆ EditHeight

DWORD EditHeight = 250

Definition at line 44 of file edittest.c.

Referenced by WndProc().

◆ EditStyle

DWORD EditStyle = 0

Definition at line 42 of file edittest.c.

Referenced by ReadNHide(), and WndProc().

◆ EditStyles

DWORD EditStyles[]
Initial value:
= {
}
#define ES_CENTER
Definition: pedump.c:665
#define WS_DISABLED
Definition: pedump.c:621
#define WS_THICKFRAME
Definition: pedump.c:630
#define ES_MULTILINE
Definition: pedump.c:667
#define ES_READONLY
Definition: pedump.c:675
#define ES_PASSWORD
Definition: pedump.c:670
#define ES_RIGHT
Definition: pedump.c:666
#define ES_WANTRETURN
Definition: pedump.c:676
#define ES_UPPERCASE
Definition: pedump.c:668
#define ES_AUTOVSCROLL
Definition: pedump.c:671
#define ES_NOHIDESEL
Definition: pedump.c:673
#define WS_HSCROLL
Definition: pedump.c:628
#define WS_BORDER
Definition: pedump.c:625
#define ES_NUMBER
Definition: winuser.h:301
#define WS_VSCROLL
Definition: pedump.c:627
#define ES_OEMCONVERT
Definition: pedump.c:674
#define ES_LEFT
Definition: pedump.c:664
#define ES_AUTOHSCROLL
Definition: pedump.c:672
#define ES_LOWERCASE
Definition: pedump.c:669

Definition at line 246 of file edittest.c.

Referenced by ReadNHide().

◆ EditWidth

DWORD EditWidth = 240

Definition at line 43 of file edittest.c.

Referenced by WndProc().

◆ EndP

DWORD EndP

Definition at line 52 of file edittest.c.

◆ g_hInst

HINSTANCE g_hInst = NULL

Definition at line 35 of file edittest.c.

Referenced by CreateCheckButton(), CreatePushButton(), RegisterAndCreateWindow(), and WndProc().

◆ g_hwnd

HWND g_hwnd = NULL

◆ Handler

Definition at line 185 of file edittest.c.

◆ hwndEdit

HWND hwndEdit = NULL

Definition at line 48 of file edittest.c.

Referenced by BackToInitialPage(), and WndProc().

◆ lParam

◆ MessageButtons

HWND MessageButtons[MAXMESSAGEBUTTONS]

◆ Msg

◆ MsgCode

DWORD MsgCode

Definition at line 182 of file edittest.c.

Referenced by WndProc().

◆ n

int n = 0

Definition at line 38 of file edittest.c.

◆ NewText

char* NewText = "New text for the edit control"

Definition at line 57 of file edittest.c.

Referenced by HandleSetHandlePrintHex().

◆ NewTextW

wchar_t* NewTextW = L"New text for the edit control in UNICODE"

Definition at line 58 of file edittest.c.

Referenced by HandleSetHandlePrintHex().

◆ NextBut

HWND NextBut

◆ point

POINTL point ={10,3}

Definition at line 50 of file edittest.c.

Referenced by af_glyph_hints_align_edge_points(), af_glyph_hints_align_strong_points(), af_glyph_hints_align_weak_points(), af_glyph_hints_reload(), af_glyph_hints_save(), af_latin_hints_compute_segments(), brush_fill_pixels(), CC_MouseCheckColorGraph(), CC_MouseCheckPredefColorArray(), CC_MouseCheckResultWindow(), CC_MouseCheckUserColorArray(), CC_PaintCross(), CC_WMInitDialog(), cff_builder_add_point(), ATL::CWindow::ChildWindowFromPoint(), ATL::CWindow::ChildWindowFromPointEx(), convert_utf16bom(), copy_mipmap_chain(), CRect::CRect(), CRYPT_AsnDecodeDistPoint(), CRYPT_AsnEncodeIssuingDistPoint(), DECLARE_INTERFACE_(), Decompose_Curve(), FT_Outline_Decompose(), ft_stroke_border_get_counts(), FT_Stroker_LineTo(), FT_Stroker_ParseOutline(), ft_stroker_subpath_start(), GdipGetPathGradientCenterPoint(), GdipGetPathGradientCenterPointI(), GdipSetPathGradientCenterPoint(), GdipSetPathGradientCenterPointI(), get_bezier_glyph_outline(), get_line_to_point_y_distance(), get_native_glyph_outline(), OpenGLSurfaceEvaluator::inEvalCoord2f(), OpenGLSurfaceEvaluator::inEvalMesh2(), OpenGLSurfaceEvaluator::inEvalPoint2(), INTERNAL_LPTODP_FLOAT(), IntGdiWidenPath(), IntTrackMouseEvent(), Graphics::IsVisible(), Region::IsVisible(), LISTVIEW_UpdateHeaderSize(), ME_HandleMessage(), CPoint::Offset(), CRect::OffsetRect(), CPoint::operator!=(), CPoint::operator+(), CSize::operator+(), CRect::operator+(), CPoint::operator+=(), CRect::operator+=(), CPoint::operator-(), CSize::operator-(), CRect::operator-(), CPoint::operator-=(), CRect::operator-=(), CPoint::operator==(), PATH_LineTo(), PATH_PolyPolyline(), ps_builder_add_point(), psh_glyph_compute_extrema(), psh_glyph_find_blue_points(), psh_glyph_find_strong_points(), psh_glyph_init(), psh_glyph_interpolate_normal_points(), psh_glyph_interpolate_other_points(), psh_glyph_interpolate_strong_points(), psh_glyph_load_points(), psh_glyph_save_points(), psh_hint_table_find_strong_points(), resample_bitmap_pixel(), resample_bitmap_pixel_premult(), CDefView::SelectAndPositionItem(), SPY_DumpStructure(), symt_add_function_point(), SysMouseWImpl_Acquire(), t1_builder_add_point(), test_decodeCRLDistPoints(), test_decodeCRLIssuingDistPoint(), test_EM_CHARFROMPOS(), test_encodeCRLDistPoints(), test_encodeCRLIssuingDistPoint(), test_events(), test_fromhrgn(), test_GetMouseMovePointsEx(), test_getregiondata(), test_IConnectionPoint(), test_pathgradientcenterpoint(), test_word_wrap(), triangulation_add_point(), ArcTessellator::trim_power_coeffs(), and ui_polygon().

◆ pos

int pos = 10

Definition at line 37 of file edittest.c.

◆ rect

RECT rect = {0,0,20,20}

Definition at line 51 of file edittest.c.

Referenced by HandlePrintPasswdChar(), HandlePrintRect(), and PrintTextXY().

◆ rect2

◆ StartP

DWORD StartP

Definition at line 52 of file edittest.c.

◆ StyleNames

char* StyleNames[]
Initial value:
= {
"WS_THICKFRAME","WS_DISABLED","WS_BORDER","ES_LOWERCASE","ES_UPPERCASE","ES_NUMBER","ES_AUTOVSCROLL",
"ES_AUTOHSCROLL","ES_LEFT","ES_CENTER","ES_RIGHT","ES_MULTILINE",
"ES_NOHIDESEL","ES_OEMCONVERT","ES_PASSWORD","ES_READONLY","ES_WANTRETURN",
"WS_HSCROLL","WS_VSCROLL"
}

Definition at line 253 of file edittest.c.

Referenced by WndProc().

◆ Text

char* Text

Definition at line 181 of file edittest.c.

Referenced by PrintTextXY(), and WndProc().

◆ TextBuffer

char TextBuffer[BUFFERLEN] ={'R','e','s','u','l','t',':',' '}

◆ UnicodeUsed

BOOL UnicodeUsed = FALSE

Definition at line 46 of file edittest.c.

Referenced by HandleSetHandlePrintHex(), and WndProc().

◆ wParam

◆ xButPos

int xButPos = 10

Definition at line 40 of file edittest.c.

Referenced by CreateCheckButton(), CreatePushButton(), and WndProc().

◆ yButPos

int yButPos = 10

Definition at line 39 of file edittest.c.

Referenced by CreateCheckButton(), CreatePushButton(), and WndProc().