createwindow

Using CreateWindow and adding buttons and such to it? How?

This is kind of a noob question but I've realized after so long of coding DirectX/OpenGL applications I don't have the feintest of ideas how to create windows with basic form objects like text boxes, labels, command buttons etc. I can create a window using the CreateWindow function just fine, how can I add buttons, command prompts and o...

how to draw image on a window

Dear All, I have created a window with createwindow() api using vs2005 in c++ on windows Vista My requirement is to draw image(any format) on that window. I am not using any MFC in this application Please help me with some code snippet with regards Vinayaka Karjigi ...

Win32 CreateWindow() call hangs in child thread?

I'm working on a portability layer for OpenGL (abstracts the glX and wgl stuff for Linux and Windows)... Anyhow, it has a method for creating a Window... If you don't pass in a parent, you get a real window with a frame... If you pass in a parent, you get a borderless, frameless window... This works fine, as long as I do it all on 1 thr...

Creating a Win32 Window app with English title bar, but the title bar becomes Chinese out of nowhere. How come?

HWND wndHandle; //global variable // code snipped WNDCLASSEX wcex; // code snipped wcex.lpszClassName = (LPCWSTR) "MyTitleName"; // code snipped wndHandle = CreateWindow( (LPCWSTR)"MyTitleName", //the window class to use (LPCWSTR)"MyTitleName", //the title bar text ... ... I am following a tutoria...

(Windows API) WM_PAINT Mouse problems.

Hello, I created a window with the following flags to overlay a d3d application: WS_EX_TOPMOST | WS_EX_COMPOSITED | WS_EX_TRANSPARENT | WS_EX_LAYERED I proceeded with colorkeying the window for transperacy and all worked well. However once I began drawing on it using GDI an unforeseen problem occurred: For some reason the mouse events (...

How to create a window based on only the size of the screen not including the windows border with C++/Windows?

When creating a window using CreateWindow(...), which requires the window width and height, I have to enter the values 656 and 516, instead of 640 and 480, so as to account for the windows border. I'm wondering if there is a way to create a window based only on the portion of the window not including the border, especially considering t...

Delphi - Message loop for Form created in DirectShow filter goes dead

I have a DirectShow filter created with Delphi Pro 6 and the DSPACK direct show library. I'm running under windows XP. I've tried creating the form dynamically when the container class for the DirectFilter has its constructor called, passing NIL into the constructor as the AOwner parameter (TMyForm.Create(nil) and then calling the Form...

Is it possible to create a sub window which will not deactivate the parent?

Normally when creating a sub window (WS_POPUP), the child window will become activate and the parent will become deactivated. However, with menus, both remain active. At least I am assuming the menu is active, it at least has focus. Example: Click on the file menu in notepad, the menu appears, yet the notepad window still looks acti...

Windows API CreateWindow client size mouse position

Hi, Working with OpenGL, I used CreateWindow( "app", "App Window", WS_CAPTION | WS_POPUPWINDOW | WS_VISIBLE | WS_SIZEBOX | WS_MINIMIZEBOX | WS_MAXIMIZEBOX, 0, 0, 1024, 768, NULL, NULL, hInstance, this ); to create a window and now I need to find the mouse position over the client (render) area. However, I noticed that the mouse co...

Create a native Windows window in JNA and some GetWindowLong with GWL_WNDPROC

Good day, I have been using JNA for a while to interact with the Windows API and now I am stuck when creating a window. As far as I have done the following: 1. Have created a child window of an existing window and obtained a valid handler to it. 2. Understood that every window in Windows has a non-stop message-dispatch loop. 3. Understo...