Answer the question
In order to leave comments, you need to log in
How to create a splash screen for loading a C++ program?
I want to make a screen saver for my program so that when it starts, a window with a picture and text is displayed. The main problem is how to make the image be displayed on a transparent background, as, for example, it was done when loading Photoshop?
Working in C++ builder environment
Answer the question
In order to leave comments, you need to log in
HWND hLogin = CreateWindowEx(WS_EX_LAYERED,
L"wnd_class_name", // вами придуманное имя класса, предварительно зарегистрированное
L"Login", WS_POPUP, 200, 200, 200, 200,
NULL, NULL, hInstance, NULL);
// для отрисовки используете функцию ниже и картинку с альфа каналом
UpdateLayeredWindow(hWnd, NULL, NULL, &sz, hdc, &ptSrc, 0, &bf, ULW_ALPHA);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question