Questions tagged [taskdialog]

58 questions
9
votes
3 answers

EntryPointNotFoundException when using TaskDialog in C#

I'm using the following code to call a TaskDialog. [DllImport("ComCtl32", CharSet = CharSet.Unicode, PreserveSig = false)] internal static extern void TaskDialogIndirect( [In] ref TASKDIALOGCONFIG pTaskConfig, [Out] out int…
Vivelin
  • 770
  • 1
  • 10
  • 23
7
votes
2 answers

Getting the color value of TaskDialog Main Instruction text

The TaskDialog in Windows7 has a blue Main Instruction text at the top. Is there a way to get that color as a Brush value in WPF?
superkinhluan
  • 733
  • 7
  • 23
7
votes
3 answers

TaskDialog fires exception: comctl32.dll in version 6 required

I´m developing a modern WPF application. I want to use the TaskDialog, but I always get the common error: TaskDialog feature needs to load version 6 of comctl32.dll but a different version is current loaded in memory. I tried to add a manifest…
SharpShade
  • 1,761
  • 2
  • 32
  • 45
7
votes
4 answers

C#: comctl32.dll version 6 in debugger

I'm using the WindowsAPICodePack for TaskDialog. When I try to show the dialog it says that it needs to load version 6 of comctl32.dll. So I added version 6 to the app.manifest and tried running it. Still no luck. I went to the Debug folder and ran…
Christian
  • 135
  • 2
  • 8
6
votes
2 answers

Vertical space in command links in TaskDialog since v1.1

I have noticed a large, vertical space in my task dialog (the space between the command links' titles and instruction texts) which looks really bad. It started to appear right after I upgraded WindowsAPICodePack to version 1.1. Here's the…
Christoffer Reijer
  • 1,925
  • 2
  • 21
  • 40
5
votes
2 answers

TaskDialog always on top in Visual C++

Is there a way to make a TaskDialog always on top (ie, system modal)? I've checked the TaskDialogConfig structure (http://msdn.microsoft.com/en-us/library/bb787473(VS.85).aspx), but I'm not having any luck. Anyone know how to do it or if it's…
Disco
  • 515
  • 1
  • 6
  • 14
3
votes
0 answers

How can we add a Help button to CTaskDialog?

The standard AfxMessageBox allows us to include a Help button by using MB_HELP. I can't work out how to do the same with CTaskDialog? Since, there is no official button ID for Help in the SDK: enum _TASKDIALOG_COMMON_BUTTON_FLAGS { …
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
3
votes
3 answers

Using Hidden Security Icons in Taskdialog

I am trying to display a Security Success Icon (with the blue background) in TaskDialog message box. This is not one of the enum values of TaskDialogStandardIcon. Reference: http://dotnet.dzone.com/articles/using-new-taskdialog-winapi. How do I…
Ashwin
  • 393
  • 1
  • 4
  • 10
3
votes
1 answer

TaskDialog window height is incorrect when an icon is specified

EDIT : I have fixed the sources of the Code Pack and uploaded an updated NuGet package : https://www.nuget.org/packages/WindowsAPICodePack-Shell/ Thanks to dmex for the bug fix…
aybe
  • 15,516
  • 9
  • 57
  • 105
3
votes
0 answers

Is there a way to prevent TaskDialog from wrapping pszContent?

Often times when our app uses TaskDialog to display a simple dialog box, Windows will wrap the last word of pszContent to a second line. In those scenarios, we'd much prefer the dialog box be widened just a bit and keep pszContent on a single…
Jon Robertson
  • 591
  • 6
  • 18
2
votes
1 answer

Exception when using TaskDialogIndirect in MFC

I am trying the following code because I want to use the Verification Check box feature: const HICON hQuestionIcon = AfxGetApp()->LoadStandardIcon(IDI_QUESTION); CString strTitle = CString(); CString strMainInstruction = CString(); CString…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
2
votes
2 answers

Converting a AfxMessageBox into a CTaskDialog using DoMessageBox

I have written this function so far: int CMFCApplication3App::DoMessageBox(LPCTSTR lpszPrompt, UINT nType, UINT nIDPrompt) { CString strContent = CString(lpszPrompt); CString strTitle; strTitle.LoadString(AFX_IDS_APP_TITLE); CTaskDialog…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
2
votes
1 answer

Force English language task dialogs to be LTR on RTL systems

We have non-localized debug TaskDialogs in English. These show up RTL on a hebrew system: How can I force them to be shown LTR? AFAICT this would be the inverse of TDF_RTL_LAYOUT.
Uli Gerhardt
  • 13,748
  • 1
  • 45
  • 83
2
votes
1 answer

Setting the main icon of a CTaskDialog as a Question?

I have this CTaskDialog that I am working on: The code is as follows: CTaskDialog dlg(_T("How would you like to download the data?"), _T("Download Schedule Information"), _T("Meeting Schedule Assistant"),…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
2
votes
1 answer

Dismissing a TaskDialog by pressing Esc

In the software I maintain I plan to replace the old MessageBox by TaskDialog as suggested by Microsoft UI guidlines already quite some time ago. The main issue I need to resolve is following: The old message box invoked via MessageBox(... ,MB_OK)…
Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
1
2 3 4