Hi,
after some processing my program shows a messagebox saying you can read a log file to know more about what has been done. I would like to show a link to the file instead the name of it. How is this done?
Thanks a lot
UPDATE:
IDD_RESULT_DIALOG DIALOGEX 0, 0, 228, 58
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_VISIBLE | WS_CAPTION
CAPTION "Fax/Modem testing tool"
FONT 8, "Helv", 0, 0, 0x1
BEGIN
PUSHBUTTON "Cancelar",IDC_BUTTON1,174,38,50,14
CONTROL "<a>SysLink1</a>",IDC_SYSLINK1,"SysLink",WS_TABSTOP,105,22,32,14
END
This is the code on the rc file where the syslink control was created.
BOOL CALLBACK ResultDlg(HWND hDlg, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) /* manipulador del mensaje */
{
case WM_INITDIALOG:
SetWindowText(GetDlgItem(hDlg,IDC_SYSLINK1), (LPCSTR)"Visit my web site" );
return TRUE;
case WM_COMMAND:
EndDialog(hDlg, FALSE);
return TRUE;
}
return FALSE;
}
This is where use SetWindowText ...
The dialog doesn't show up. If a Syslink control is embedded in the dialog. I'm not using MFC... can this be the problem?