answersLogoWhite

0

In c programming or gml what does hwnd mean?

Updated: 8/16/2019
User Avatar

Wiki User

15y ago

Best Answer

If your using Windows, its the API call for a window.

It stands for (h) handle (Wnd) Window.

Its the standard call all other commands use to gain access to a window.

Microsoft likes to prefix their variables with the lowercase letter h to represent a 'handle' to that object.

For instance, an hDC is a handle to a device context.

If you've done any programming using the Windows API, you will encounter many such syntactical conventions.

You can reference any given window through its hWnd handle.

http://www.blitzbasic.com/Community/posts.php?topic=55029

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: In c programming or gml what does hwnd mean?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What do you mean by c language?

C is a programming language.


What is the Differentiate between dos based programming and windows programming?

A DOS program's output/input is based souly on the DOS proment, while a win api based program is based within its own window. Code is untested! // DOS Prompt Code c/c++ - With output #include <iostream> // Input Output Stream int main() { std::cout << "Hello World"; // Output Command return 0; } // Win Api Code c/c++ just window #include <windows.h> LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam); int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,PSTR szCmdLine, int iCmdShow) { static TCHAR szAppName[] = TEXT ("Opengl"); HWND hwnd; WNDCLASS wndclass; HDC hdc; MSG msg; HGLRC hrc; wndclass.style = CS_HREDRAW | CS_VREDRAW; wndclass.lpfnWndProc = WndProc; wndclass.cbClsExtra = 0; wndclass.cbWndExtra = 0; wndclass.hInstance = hInstance; wndclass.hIcon = LoadIcon (NULL, IDI_APPLICATION); wndclass.hCursor = LoadCursor (NULL, IDC_ARROW); wndclass.hbrBackground = (HBRUSH) GetStockObject (WHITE_BRUSH); wndclass.lpszMenuName = NULL; wndclass.lpszClassName = szAppName; if (!RegisterClass (&wndclass)) { MessageBox (NULL, TEXT ("This program requires Windows NT!"), szAppName, MB_ICONERROR); return 0; } hwnd = CreateWindow (szAppName, TEXT ("OpengGL"), WS_OVERLAPPEDWINDOW, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, CW_USEDEFAULT, NULL, NULL, hInstance, NULL); ShowWindow (hwnd, iCmdShow); UpdateWindow (hwnd); while (GetMessage (&msg, NULL, 0, 0)) { TranslateMessage (&msg); DispatchMessage (&msg); } return msg.wParam; } LRESULT CALLBACK WndProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) { switch (message) { case WM_PAINT: opengl.callDisplayFunc(); return 0; case WM_SIZE: return 0; case WM_KEYDOWN: switch(wParam) { case VK_ESCAPE: SendMessage(hwnd,WM_DESTROY,wParam,lParam); break; } return 0; case WM_DESTROY: PostQuitMessage(0); return 0; } return DefWindowProc (hwnd, message, wParam, lParam); }


What does the hashtag mean in programming?

In programming, specifically in C and C++, the hashtag (#) is used to include files into the main program and to create macros.


What do you mean by non primitive data structure in C programming?

What do you mean by searching in data structure in C.?


What are the colors in C programming language?

What exactly do you mean by colors?


C what does it mean?

Hundred Carbon A vitamin A programming language ...


What programed are there to make a video game?

The programming language used to make video games varies depending on preference, but the most commonly used programming language is C++.


What does increments mean in C programming?

It has nothing to do with C, it simply means: add 1 to a variable.


What do you mean by Net Programming?

It is programming using the .NET Framework, which does not necessarily have anything to do with the web. It refers to languages such as: VB.NET, C#, Visual C++, J# etc.


What do you mean by c taken programming in c?

A C program is a computer program written using the C programming language.


What actually mean by object oriented programming Is C plus plus is a object oriented programming?

Just eat a watermellon!


What is c and c in computer programming?

C and C++ are both high-level programming languages.