Dialog title
Posted: Tue Mar 06, 2007 7:53 am
Antonio,
How to set to second dialog title ? When second dialog is loaded, dialog title doesn't change.
Regards
Pawel
How to set to second dialog title ? When second dialog is loaded, dialog title doesn't change.
Regards
Pawel
Code: Select all
// prg file
#Include 'FwCe.Ch'
Function Test1 ()
Local oDlg := Nil
Define Dialog oDlg Resource 'TEST1'
ReDefine Button Id 1001 of oDlg Action Test2 ()
Activate Dialog oDlg On Init DlgFullScr (oDlg : hWnd)
Return .T.
Function Test2 ()
Local oDlg := Nil
Define Dialog oDlg Resource 'TEST2'
Activate Dialog oDlg On Init DlgFullScr (oDlg : hWnd)
Return .T.
#pragma BEGINDUMP
#include <hbapi.h>
#include <windows.h>
#include <aygshell.h>
HB_FUNC (DLGFULLSCR)
{
SHINITDLGINFO shidi;
HWND hDlg = (HWND) hb_parnl (1);
shidi.dwMask = SHIDIM_FLAGS;
shidi.hDlg = hDlg;
shidi.dwFlags = SHIDIF_EMPTYMENU|SHIDIF_SIZEDLGFULLSCREEN;
SHInitDialog (&shidi);
}
#pragma ENDDUMP
// rc file
#include <windows.h>
#include <commctrl.h>
LANGUAGE LANG_POLISH,SUBLANG_DEFAULT
TEST1 DIALOG DISCARDABLE 0, 0, 136, 154
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_VISIBLE
CAPTION "TEST1"
FONT 10, "System"
BEGIN
CONTROL "TEST1", 1001, "Button", WS_TABSTOP, 100, 140, 34, 11
END
TEST2 DIALOG DISCARDABLE 0, 0, 136, 154
STYLE WS_POPUP|DS_MODALFRAME|WS_CAPTION|WS_VISIBLE
CAPTION "TEST2"
FONT 10, "System"
BEGIN
CONTROL "TEST2", 1001, "Button", WS_TABSTOP, 100, 140, 34, 11
END