Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 11:51

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[C++] GDI+ Create Controls

Discussion on [C++] GDI+ Create Controls within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Light.D.Right's Avatar
 
elite*gold: 0
Join Date: Oct 2011
Posts: 452
Received Thanks: 1,839
[C++] GDI+ Create Controls

Hay everybody,
i want to create a splash screen window but got one Problem.
I already displayed my Bitmap with UpdateLayeredWindow and alpha blend,
but if i try to create a Control on it, it doesn't show anything.
here is a screen of the Window.

and here my Winmain.
Code:
    Gdiplus::GdiplusStartupInput gdiplusStartupInput;
    Gdiplus::GdiplusStartup(&m_gdiplusToken, &gdiplusStartupInput, NULL);
    hBmp = LoadBitmap(hinst, MAKEINTRESOURCE(IDB_SPLASH));
	
    WNDCLASSEX wcex;

    wcex.cbSize          = sizeof(WNDCLASSEX);
    wcex.style           = CS_HREDRAW | CS_VREDRAW | CS_OWNDC;
    wcex.lpfnWndProc     = WndProc;
    wcex.cbClsExtra      = 0;
    wcex.cbWndExtra      = 8; // 8 bytes, to allow for 64-bit architecture
    wcex.hInstance       = hinst; // CHECK
    wcex.hIcon           = NULL;
    wcex.hCursor         = ::LoadCursor(NULL, IDC_ARROW);
    wcex.hbrBackground   = (HBRUSH)NULL_BRUSH; // CHECK
    wcex.lpszMenuName    = NULL;
    wcex.lpszClassName	 = "GDI_Window";
    wcex.hIconSm         = NULL;
	
    RegisterClassEx(&wcex);

    HWND wnd = CreateWindowEx(WS_EX_TOPMOST | WS_EX_LAYERED, "GDI_Window", "Projectx7 Kickhack v4", WS_POPUP , 0, 0, 700, 500, NULL, NULL, hinst, NULL);
	
	Blend(wnd, hBmp, 255);
	ShowWindow(wnd, nShowCmd);
	UpdateWindow(wnd);

	MSG msg = { 0 };

    while ( ::GetMessage( &msg, NULL, 0, 0 ) )
    {
            ::TranslateMessage(&msg);
            ::DispatchMessage(&msg);
    }

    Gdiplus::GdiplusShutdown(m_gdiplusToken);
Light.D.Right is offline  
Thanks
1 User
Old 10/14/2013, 23:15   #2
 
-Madskills-'s Avatar
 
elite*gold: 0
Join Date: Jul 2013
Posts: 66
Received Thanks: 17
Maybe checking the depth???

I don't know,
I've never seen this before :<
-Madskills- is offline  
Reply


Similar Threads Similar Threads
[C#] Meine Controls
10/28/2012 - .NET Languages - 8 Replies
Hallöchen, Vorgestern hab ich ein Turorial gesehen wie mann ein eigenes C# WinFormsControl (in dem Tut war es ein Fortschrittsbalken) erstellen kann.. Darauf hin hab ich dies natürlich selber versucht und es ist mir leicht gefallen :) Deshalb hab ich mich mal ohne Tut dran gesetzt eine Lebensanzeige in Style von Zelda zu machen. Daraus ist dann folgendes geworden: https://dl.dropbox.com/u/62849616/Stackoverflow/h eartbar.PNG...
controls
05/24/2012 - DarkOrbit - 2 Replies
I could make a discussion about when I say we are the controls?
controls openstealth
05/11/2012 - DarkOrbit - 1 Replies
rumors that the Italians make the server checks the proxy for palladium collection, four days from 0.10 to 15 May, does anyone know if it's true? I do not know if there will be checks on all servers darkorbit. excuse my English, I'm Italian
Controls
07/31/2011 - AutoIt - 5 Replies
Else
Set your controls like a pro
02/01/2009 - CO2 Guides & Templates - 10 Replies
Heres a quick way to set controls or "hotkeys" in an efficient and durable way. Im gona explain how i set my controls but feel free to make changes for your confort. I set my hotkeys with the CTRL key because you always have to press it anyways. Ctrl+W inventory -you always want to look in your bag Ctrl+D clear -so much talkshit in co Ctrl+S sit -power over 9000 Ctrl+A shift screen -this may seem stupid to some but...



All times are GMT +1. The time now is 11:51.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.