Howdy, Stranger!

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

Categories

Change Caption bar of A Modal Dialog Box

Hi Everyone,
I am creating the Message Box using Modal Dialog Box.
So i want to change Caption bar according to given
Caption.
If anyone know the code and concept,
Please give me.

Thanks
Anuj Awasthi.

Comments

  • AsmGuru62AsmGuru62 Member Posts: 6,519
    : Hi Everyone,
    : I am creating the Message Box using Modal Dialog Box.
    : So i want to change Caption bar according to given
    : Caption.
    : If anyone know the code and concept,
    : Please give me.
    :
    : Thanks
    : Anuj Awasthi.
    :
    [code]
    BOOL CALLBACK YourDialogBoxProc (HWND hDlg, UINT uiMsg, WPARAM wp, LPARAM lp)
    {
    switch (uiMsg)
    {
    case WM_INITDIALOG:
    SetWindowText (hDlg, "Your Caption Text");
    break;

    default:
    return FALSE;
    }

    return TRUE;
    }
    [/code]
Sign In or Register to comment.