Using Win32 functions in Visual FoxPro Image Gallery
Common Dialog Box
..msdn
ChooseColor
ChooseFont
CommDlgExtendedError
FindText
GetFileTitle
GetOpenFileName
GetSaveFileName
PageSetupDlg
PrintDlg
PrintDlgEx
TaskDialog
TaskDialogIndirect
Code examples:
How to display a Task Dialog (Vista)
How to display advanced Task Dialog (Vista)
TaskDialog
..msdn    Add comment     W32 Constants      Translate this page
Creates, displays, and operates a task dialog.
Code examples:
How to display advanced Task Dialog (Vista)
How to display a Task Dialog (Vista)
Declaration:
HRESULT TaskDialog(      
    HWND hWndParent,
    HINSTANCE hInstance,
    PCWSTR pszWindowTitle,
    PCWSTR pszMainInstruction,
    PCWSTR pszContent,
    TASKDIALOG_COMMON_BUTTON_FLAGS dwCommonButtons,
    PCWSTR pszIcon,
    int *pnButton
);
FoxPro declaration:
DECLARE INTEGER TaskDialog IN comctl32;
    INTEGER hWndParent,;
    INTEGER hInstance,;
    STRING pszWindowTitle,;
    STRING pszMainInstruction,;
    STRING pszContent,;
    INTEGER dwCommonButtons,;
    INTEGER pszIcon,;
    INTEGER @pnButton
Parameters:
hWndParent
[in] Handle to the owner window of the task dialog to be created.

hInstance
[in] Handle to the module that contains the icon resource identified by the pszIcon member, and the string resources identified by the pszWindowTitle and pszMainInstruction members.

pszWindowTitle
[in] Pointer to the string to be used for the task dialog title.

pszMainInstruction
[in] Pointer to the string to be used for the main instruction.

pszContent
[in] Pointer to a string used for additional text that appears below the main instruction, in a smaller font.

dwCommonButtons
[in] Specifies the push buttons displayed in the dialog box.

pszIcon
[in] Pointer to a string that identifies the icon to display in the task dialog.

pnButton
[out]
When this function returns, contains either 0 (on error) or Id of the pressed button.
Return value:
On success returns S_OK (0).
Usage:
nButtonId=0
nButtons = TDCBF_CLOSE_BUTTON 
nIcon = BITAND(0x0000ffff, TD_SHIELD_WARNING_ICON)

nResult = TaskDialog(_screen.HWnd, 0,;
    cTitle, cInstruction, cContent,;
    nButtons, nIcon, @nButtonId)

? nButtonId
My comment:
Minimum operating systems: Windows Vista

All strings passed to this function must be in Unicode format.

The task dialog contains application-defined message text and title, icons, and any combination of predefined push buttons.



See also: TaskDialogIndirect, MessageBox, MessageBoxIndirect
Word Index links for the TaskDialog :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2009-12-02 20:52:29
Modified: 2009-12-02 22:31:31
Visited in last 7 days: 27
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.227.23.16)
4 sec.Function: 'JetEndSession'
Google
Advertise here!