Category : window

I am trying to create an application that could dynamically create additional windows. Each window will be drawn to using Vulkan and I know that this means that each window will have to contain it’s own SwapChain resources (image views, framebuffers, etc.) and graphics pipeline (as it is references the swap chain’s extents). I am ..

Read more

Right now i have LPVOID that i got from resource in module and i want to convert it into unsigned char* and get width height to use with GLFWimage HMODULE hModule = GetModuleHandle(NULL); HRSRC hResource = FindResource(hModule, MAKEINTRESOURCE(IDB_PNG1), L"png"); HGLOBAL hMemory = LoadResource(hModule, hResource); DWORD dwSize = SizeofResource(hModule, hResource); LPVOID lpAddress = LockResource(hMemory); Source: Windows ..

Read more

Daily Reminder: Downvoting without explaining the reason is just being an ass. I’m using WriteConsoleOutput to draw the content of a buffer 100×100 characters big to the console, which window’s client area is 800×800 pixels big (font is 8×8). The problem is: If I use this code: RECT rect; rect.left = window_position.x; rect.top = window_position.y; ..

Read more

I want to add a button to my window and this is its code : HWND hwndButton = CreateWindow( L"BUTTON", // Predefined class; Unicode assumed L"Check for update", // Button text WS_TABSTOP | WS_VISIBLE | WS_CHILD | BS_DEFPUSHBUTTON, // Styles 10, // x position 30, // y position 150, // Button width 30, // Button ..

Read more