#include <windows.h>
#include <assert.h>
Go to the source code of this file.
◆ nMaxCtrls
◆ nStaticHeight
◆ nStaticWidth
◆ SS_ENDELLIPSIS
#define SS_ENDELLIPSIS 0x00004000L |
◆ CreateStatic()
Definition at line 21 of file statst2.c.
22{
26 "STATIC",
27 lpWindowName,
37}
HWND g_hwndCtrl[nMaxCtrls]
Referenced by WndProc().
◆ RegisterAndCreateWindow()
Definition at line 115 of file statst2.c.
119{
122
124
139
141 0,
142 className,
152 0 );
153
156
159
161}
#define WS_OVERLAPPEDWINDOW
LRESULT CALLBACK WndProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
BOOL WINAPI ShowWindow(_In_ HWND, _In_ int)
BOOL WINAPI UpdateWindow(_In_ HWND)
Referenced by WinMain().
◆ WinMain()
Definition at line 163 of file statst2.c.
164{
165 char className [] = "Static Control Test";
169
171
172
174 {
176 return -1;
178 }
180}
HWND RegisterAndCreateWindow(HINSTANCE hInst, const char *className, const char *title)
TW_UINT32 TW_UINT16 TW_UINT16 MSG
◆ WndProc()
Definition at line 39 of file statst2.c.
40{
43 {
48
50
52
54
56
59
62
65
68
71
74
77
79
81
83
86
89
90
91
92 break;
93
99 break;
100
102 {
104 DrawText ( lpDrawItem->
hDC,
"SS_DRAWITEM test successful!", 28, &(lpDrawItem->
rcItem), 0 );
105 }
106 break;
107
110 return 0;
111 }
113}
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
static void CreateStatic(const char *lpWindowName, DWORD dwStyle)
struct tagDRAWITEMSTRUCT * LPDRAWITEMSTRUCT
__analysis_noreturn void WINAPI PostQuitMessage(_In_ int)
Referenced by RegisterAndCreateWindow().
◆ g_hInst
◆ g_hwnd
◆ g_hwndCtrl
◆ nNextCtrl