William Hoskins
William Hoskins

Reputation: 305

ShowWindow not displaying

So, I am working on a project, and the first step I wanted to have done is to create a window, and I figured I would populate it later. I use createwindowex to make it:

IntPtr newWindow = CreateWindowEx(WindowStylesEx.WS_EX_OVERLAPPEDWINDOW, "HelloWin", "New Window", WindowStyles.WS_OVERLAPPEDWINDOW, 0, 0, 100, 100, IntPtr.Zero, IntPtr.Zero, hInstance,IntPtr.Zero);

And show it using ShowWindow:

ShowWindow(newWindow, ShowWindowCommands.Normal);

Is there anything I am forgetting to do between these 2 methods? I am not getting any errors and everything else I have set up is running, the window isn't popping up though. Thanks!

Upvotes: 0

Views: 1300

Answers (1)

Xearinox
Xearinox

Reputation: 3234

I think, that problem is, you dont call UpdateWindow after ShowWindow. But I am not working in .Net, only pure win32 api. :-)

Upvotes: 1

Related Questions