Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

question about prescreens

raniarania Member Posts: 35
Hy everybody
I develop a program about the Multimedia Format Viewer (Anatomy of different types of Multimedia files, like: WAV, JPG, MPG,.etc), using Visual C++ (WIN API). But, I have some problems in the program:
I want :
To add some Prescreens(describing the program name, its use, some details about different multimedia file formats,etc), before the main screen of the program to be shown.
How this can be made
can any one help me
many thanks in advance
rania

Comments

  • chick80chick80 Member Posts: 349
    I don't know if this is the best method (I think there is some better),
    but you could just show one (or a series of) dialogs with
    the infos and then create the main window when they are closed.
    I mean that you should use something like this:

    [CODE]
    int WINAPI WinMain([...])
    {
    DialogBox(hInst, IDD_PRESCREEN1, NULL, (DLGPROC) DialogFunction);
    }

    LRESULT CALLBACK AboutDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
    {
    switch(uMsg)
    {
    case WM_INITDIALOG:
    // Initialize dialog
    break;
    case WM_DESTROY:
    // HERE you place window creation code
    CreateWindow(...);
    }
    }
    [/CODE]

    nICO
  • GreyWolfSftwreGreyWolfSftwre Member Posts: 82
    [b][red]This message was edited by Moderator at 2002-9-6 14:10:2[/red][/b][hr]
    : I don't know if this is the best method (I think there is some better),
    : but you could just show one (or a series of) dialogs with
    : the infos and then create the main window when they are closed.
    : I mean that you should use something like this:
    :
    : [CODE]
    : int WINAPI WinMain([...])
    : {
    : DialogBox(hInst, IDD_PRESCREEN1, NULL, (DLGPROC) DialogFunction);
    : }
    :
    : LRESULT CALLBACK AboutDlgProc(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
    : {
    : switch(uMsg)
    : {
    : case WM_INITDIALOG:
    : // Initialize dialog
    : break;
    : case WM_DESTROY:
    : // HERE you place window creation code
    : CreateWindow(...);
    : }
    : }
    : [/CODE]
    :
    : nICO

    on initialization of the program, i would display a bitblt, a precreated image with all of the info you want, have the program wait until a user prompt or something, and then stop showing the bmp, and create the main window.

    btw: they're called splash screens.

    ~DaN



  • Shawn CarterShawn Carter Member Posts: 0

    ___ // http://forcoder.org // free ebooks and video tutorials about // Python, Delphi, Go, Scratch, PL/SQL, R, Perl, Swift, PHP, MATLAB, C, Java, Assembly, Visual Basic .NET, C#, JavaScript, Visual Basic, Objective-C, Ruby, C++ ABAP, Kotlin, Logo, Apex, SAS, Prolog, D, Lua, Ada, Awk, Crystal, F#, Julia, Lisp, Hack, Scala, Clojure, Rust, Scheme, Bash, FoxPro, Erlang, Dart, LabVIEW, VBScript, Fortran, COBOL, ML, Transact-SQL, Alice // _______

Sign In or Register to comment.