Home |
API |
MFC |
C++ |
C |
Up
Programming Windows API
Task Dialogs Example
//task control demo
#include <windows.h>
#include <commctrl.h>
#pragma comment(lib, "comctl32.lib") //adds link to control control DLL
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
int APIENTRY WinMain( HINSTANCE hInst, HINSTANCE hPrev, LPSTR lpCmdLine, int nCmdShow )
{
TaskDialog(NULL, NULL, L"A simple task dialogue example",L"Click OK to close", NULL, TDCBF_OK_BUTTON ,TD_WARNING_ICON, NULL);
return 0;
}
Home |
API |
MFC |
C++ |
C |
Up
Creating a Simple Window |
Common Elements |
Data Types and Character Sets |
The Device Context |
Graphics Device Interface |
Displaying Text |
Displaying Graphics |
Mapping Modes |
Keyboard Input |
Working with the Mouse |
Menus |
Child Windows |
ScrollBar Control |
The Dialog Box |
Windows Message Box |
Common Dialog Box |
Bitmaps |
Common Controls |
Creating a Toolbar |
Multiple Document Interface |
Timers |
DLL’s |
Creating Custom Controls |
Owner Drawn Controls |
API Hooking and DLL Injection |
File Management Functions |
String Manipulation |
System Information Functions
Last Updated: 15 September 2022