Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(Question) Black Box Issue #8056

Closed
GamebP opened this issue Oct 13, 2024 · 1 comment
Closed

(Question) Black Box Issue #8056

GamebP opened this issue Oct 13, 2024 · 1 comment

Comments

@GamebP
Copy link

GamebP commented Oct 13, 2024

Version/Branch of Dear ImGui:

Version 1.91.3 WIP, Branch: Docking

Back-ends:

imgui_impl_dx9 + imgui_impl_win32.cpp

Compiler, OS:

Windows 10 + Visual Studio 2022 (v143)

Full config/build information:

No response

Details:

My Issue/Question:
My current X problem is, that I have CreateWindowExA with CreateDevice, CreateImGui.
And then it creates a rendered from D3D9, then loads the ImGui, then calls EndFrame.
But at the end I need to call... to make it not crash since I want to use ImGuiNotify to display some data at bottom left corner.

if (ImGui::GetIO().ConfigFlags & ImGuiConfigFlags_ViewportsEnable) 
{
    ImGui::UpdatePlatformWindows();
    ImGui::RenderPlatformWindowsDefault();
}

I just want it to not create a black box when doing CreateHWindow (for short CreateWindowExA from (winuser.h)).
It is CreateHWindow issue but can't get rid of it.
So my Y solution could be getting rid of the Black box but at the same time I am able to see Notifications at bottom left corner. Like I Need to move the imgui menu that has the alot of data not stay at the same place.
Removing black box -> fixes the movment for (main window) and removes (yeap!) child from the main Generator.exe

Screenshots/Video:

image
image
image

Minimal, Complete and Verifiable Example code:

BlackBoxImgui.zip

@ocornut
Copy link
Owner

ocornut commented Oct 14, 2024

Question seems to have nothing to do with dear imgui.
Sorry but #1586

@ocornut ocornut closed this as completed Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants