L
L
LNK2016-02-08 18:16:54
C++ / C#
LNK, 2016-02-08 18:16:54

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? oprning+part+13.png
Working in C++ builder environment

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Peter, 2016-02-08
@NikHaker

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 question

Ask a Question

731 491 924 answers to any question