Questions tagged [taskdialog]

58 questions
2
votes
1 answer

Setting width of CTaskDialog to 50% of screen width

I am having problems setting the width. This is my code: void CWin32FileError::DisplayExceptionMessage() { CString strContent = _T(""); // Default shouldn't happen if (!m_strErrorFile1.IsEmpty() && !m_strErrorFile2.IsEmpty()) { …
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
2
votes
1 answer

Hyperlinks in CTaskDialog footer

I have read this article: Article It clearly shows hyperlinks are supported in the footer. I can’t work out how to do it. I don’t want a literal URL in the text but other text that hyperlinks to a help article in the program.
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
2
votes
1 answer

Replacing texts “OK”, “Cancel”, “Yes”, “No” in Windows Task Dialogs

On a Win32 Task Dialog the texts "OK", "Cancel", "Yes", "No" etc. of the standard buttons are automatically displayed in the system's language. That can be a problem if the language of a Software is different of the system's language. For instance…
Jabberwocky
  • 48,281
  • 17
  • 65
  • 115
2
votes
1 answer

TaskDialog not working on (or replacement for) Windows 10?

We have an older WPF application that makes use of the "Windows API Code Pack" in order to show a Task Dialog (something that was introduced back in Vista but worked all the way through Windows 8). I'm now trying to run the project on Windows 10,…
qJake
  • 16,821
  • 17
  • 83
  • 135
1
vote
2 answers

Exception only occuring on DragDrop

I have a WinForms application that makes use of a TaskDialog library that leverages the Vista style dialogs from ComCtl32.dll and for lesser OS's it uses an emulated win form... But that's not the problem... This library works fine and we've never…
Reddog
  • 15,219
  • 3
  • 51
  • 63
1
vote
2 answers

How to create a windows application in C++ showing just a TaskDialog

I need to create a windows application in C++ and it has to show just a TaskDialog (see http://msdn.microsoft.com/en-us/library/windows/desktop/bb760540(v=vs.85).aspx ). The TaskDialog should show a text passed as parameter to the command line. I…
Alessandro Jacopson
  • 18,047
  • 15
  • 98
  • 153
1
vote
2 answers

TaskDialog with no buttons

Is it possible to show the TaskDialog with no buttons? I would like to be able to show just a progress bar (with a message), and then close the TaskDialog window when when my processing is complete (from the Timer event). Right now, I can show a…
user82383
  • 879
  • 3
  • 11
  • 31
1
vote
0 answers

How to get access to m_hwnd from CTaskDialog

I derive a class from CTaskDialog to implement an AutoCloseButton. HRESULT CMyTaskDialog::OnTimer(_In_ long lTime) { if (GetTickCount() - m_dwStart > (DWORD)m_nTimeout) { SendMessage(m_hWnd, TDM_CLICK_BUTTON, IDOK, 0); } …
Tom Tom
  • 1,127
  • 11
  • 25
1
vote
1 answer

Title caption (AFX_IDS_APP_TITLE) is not correct when using TaskDialogIndirect with MFC

In my STRINGTABLE I have the following: In my code where I use TaskDialogIndirect I can hover over AFX_IDS_APP_TITLE: I understand this much ... if the resource can't be found it defaults to the executable name. At the moment that is what I am…
Andrew Truckle
  • 17,769
  • 16
  • 66
  • 164
1
vote
1 answer

Determine why a taskdialog was closed in Delphi

A part of my Delphi application accesses information from another program. Because it can take some time to execute, and sometimes the other program may be unresponsive, I run that part of my code in a separate thread. To keep my users informed of…
1
vote
1 answer

TaskDialog not working in my Delphi Program

I am using Delphi 10.4. This is a Windows VCL Application. I wanted to convert all my ShowMessage, MessageDlg and MessageBox calls to TaskDialogs in my program. When I tried to do that, I couldn't get TaskDialog to display anything. So what I did…
lkessler
  • 19,819
  • 36
  • 132
  • 203
1
vote
1 answer

c# Revit API task dialog with multiple lines counting elements

I have a simple Revit plugin to count multiple elements by category and display the totals in a task dialog. The code works fine with one category. When I add more that 1 line to count multiple categories anything after the 1st line returns a result…
Gosmith
  • 457
  • 1
  • 3
  • 19
1
vote
0 answers

How to avoid automatic text truncation in Win32 TaskDialog

We are using the TaskDialogIndirect function to report all type of messages in our application. The problem I see with TaskDialog is that it automatically truncates unbreakable text with ellipsis on both sides and there seems to be no way to avoid…
A9S6
  • 6,575
  • 10
  • 50
  • 82
1
vote
3 answers

calling TaskDialogIndirect loader says ordinal 345 not found

I built the simple MS example for TaskDialogIndirect (see https://msdn.microsoft.com/en-us/library/windows/desktop/bb760544(v=vs.85).aspx) When I run it I get "The ordinal 345 could not be located in the dynamic link library COMCTL32.dll" The above…
Andrew W. Phillips
  • 3,254
  • 1
  • 21
  • 24
1
vote
1 answer

TaskDialog as modal Dialog

I am using TaskDialog and its really nice and i like it instead of normal messagebox. However i noticed that Show() of the TaskDialog allow user to go back to form and do something... I mean its not blocking Form till user close TaskDialog clicking…
Arie
  • 3,041
  • 7
  • 32
  • 63