My startup screen Creation

Source: Internet
Author: User

All documents (in HTML format) about iczelion Win32 Assembly tutorial are available on Luo yunbin's website ).

Link: http: // 211.90.241.130: 22366/view. asp? File = 102.

There is a section on "How to create a program startup screen.

The implementation of this section is as follows:

1: Make the startup screen into a window. The properties and window process functions of the window must be maintained by yourself.

2: Then, put the window shown in the startup screen into the dynamic Connection Library.

3: load the dynamic Connection Library at the beginning of the Main Window program, and execute it. The code of the main window is executed after the startup window is executed.

However, after the code in this tutorial is run, the startup window is displayed in the taskbar.

After the startup window is displayed, it will automatically destroy it and its taskbar ID will disappear.

Then, in the real main program window, of course, the main window ID will also be displayed in the taskbar.

 

Finally, you can think about it yourself.... In The Real startup window, the taskbar will not show the startup window identifier.

For example, in the SQL Server 2005gui manager startup window, when the startup window is displayed, the taskbar does not display the identifier of the startup window.

To imitate the startup window of the SQL Server 2005gui manager, I tried to regard the startup screen as a bitmap and then put the bitmap into the dialog box through the image control,

Remove the border of the dialog box and the border of the image control. The running effect of the dialog box is to display the image in the middle of the screen.

Then, write a callback program for this dialog box and a timer callback program to control the start time of the screen display.

// About for idd_startupshow dialog process function
Int_ptr callback startupshow (hwnd hdlg, uint message, wparam, lparam)
{
Switch (Message)
{
Case wm_initdialog:
Settimer (hdlg, 1, 2000, timerproc1 );
Return (int_ptr) true;
}
Return (int_ptr) false;
}

// About timer function for startupshow Function
Void callback timerproc1 (hwnd, uint umsg, uint_ptr idevent, DWORD dwtime)
{
Killtimer (hwnd, 1 );
Enddialog (hwnd, 0 );
}

Then, call our dialog box in the wm_create message in the main window.

Case wm_create:
// Create a dialog
Dialogboxparam (hinst, makeintresource (idd_startupshow), hwnd, startupshow, null );

The startup screen created in this method is not identified in the taskbar when the startup screen is displayed.

You can also share the implementation of the startup screen.

For example, some dynamic initialization text information is displayed on the startup screen of Eclipse IDE.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.