Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 606 results for
dialogbox
- Page 1
Dialogbox and Cancel
Programming
Software Development
16 Years Ago
by Prozeen
Hi, I am displaying a
dialogbox
to the user. If the user clicks the "Cancel&… a message box, then I want to continue displaying the
dialogbox
. The best I can come up with is...[code]Do…
DialogBox() function and function pointer in class scope
Programming
Software Development
16 Years Ago
by fisch
…to handle the messages of an windows dialog box. The
DialogBox
() Function call requires a function pointer to this callback function…GUIControl::init(HINSTANCE hInst) { InitCommonControls(); // Display the main dialog box.
DialogBox
( hInst, MAKEINTRESOURCE(IDD_MOUSE), NULL, &GUIControl::dlgProc); } INT_PTR CALLBACK GUIControl…
AddIn with a dialogBox for ms-word (C++)
Programming
Software Development
17 Years Ago
by Tamir
… [B][U]I wish to add an "Options"
dialogBox
[/U][/B] with tabs to it. Ms-word uses the… [B]bosa_sdm_Microsoft [/B]class for the "Options"-
dialogBox
. I wish to add such a dialog (window) to my…
ByPass cutePDF dialogBox
Programming
Software Development
14 Years Ago
by richard-iii
Hi All, i want to make some automation pdf converter, and i choose cutePDF as the third party... but i stuck in save
dialogbox
~~ just want to ask, how to bypass
dialogbox
? or, any suggestion for other freeware that can do xls2pdf automation? thanks all ~~ i appreciate all kind of suggestion ~~
Adding Menu to windows dialog created with DialogBox()
Programming
Software Development
14 Years Ago
by shea279
I created a
dialogbox
, with controls, by using the
DialogBox
() function and a resource file with the controls in it (IDD_DIALOG1). But I'm having an extremely hard time finding a function which will add a menu, also in the resource file, to a dialog created in such a way (IDR_MENU1). Help?
Using DialogBox in a separate class (non-MFC)
Programming
Software Development
11 Years Ago
by dshiells
… following code in my MainWindow class: MainWindow::MainWindow(HWND hWnd) {
DialogBox
(GetModuleHandle(NULL), MAKEINTRESOURCE(IDD_MAINDLG), NULL, MainWindow::MainDlgProc); } BOOL CALLBACK …am getting errors regarding the `MainWindow::MainDlgProc` argument in the `
DialogBox
()` call. I have tried a variety of options like `…
Opening "Open With.." dialogbox through VB code
Programming
Software Development
18 Years Ago
by vrushalinz1
I have a Contextmenu which dispalys a file name.it has submenus that provides 2 options:Open;Open With... Open opens the file normally. i want "Open With"
dialogbox
to open wen user clicks the second option. How do i do it.
Need VB code to open "Open With" Dialogbox
Programming
Software Development
18 Years Ago
by allenhu
Hi, Is there anyone who can provide VB code to open "Open With"
dialogbox
? Thanks Allen
While I am Downloading ,One Dialogbox will open.When user will be saving file name...
Programming
Web Development
16 Years Ago
by mishrap
While I am Downloading ,One
Dialogbox
will open.When user will be saving file name...that …
Win32 DialogBox
Programming
Software Development
15 Years Ago
by FTProtocol
… WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
DialogBox
(hInstance, MAKEINTRESOURCE(IDD_Main), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return…
Re: Win32 DialogBox
Programming
Software Development
15 Years Ago
by FTProtocol
… WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) {
DialogBox
(hInstance, MAKEINTRESOURCE(IDD_Main), hWnd, reinterpret_cast<DLGPROC>(DlgProc)); return…
Get the path from Downloading dialogbox???
Programming
Software Development
14 Years Ago
by razmca
… my web application(ASP.Net with C#), which brings an
dialogbox
asking where to save the file. But i want to…
color dialogbox
Programming
Software Development
14 Years Ago
by jlego
with the vb.net default color
dialogbox
how can you handle the cancel buttons click event ? if the cancel button is clicked, i dont want it to make any changes with the selected color. as of now if i click cancel it still edits the colors. thanks
is there any code for opening a file without using any dialogbox? directly
Programming
Software Development
12 Years Ago
by zoraster01
is there any code for opening a file without using any
dialogbox
? directly
Problem in loading Dialogbox Infront of form in vb.net
Programming
Software Development
11 Years Ago
by sonyj
Problem in loading
Dialogbox
Infront of a form in vb.net
Re: Dialogbox and Cancel
Programming
Software Development
16 Years Ago
by Prozeen
Okay I've now got the following code...[code]Do On Error GoTo cancelmessage comdia.cancelerror = True comdia.Filter = "*.doc" comdia.InitDir = "C:\" comdia.filename = "" comdia.ShowSave cancelmessage: Select Case Err Case 32755 MsgBox "You must save this document." Err.Clear End Select Loop …
Re: Dialogbox and Cancel
Programming
Software Development
16 Years Ago
by hopalongcassidy
You might be confused by the fact that the logic following "cancelmessage:" is executed regardless of whether or not there is an error. The second time through the loop, you may have gotten an error other than 32755. In this case the "Err.Clear" instruction would not have been executed. Try putting a "goto endloop&…
Re: Dialogbox and Cancel
Programming
Software Development
16 Years Ago
by Prozeen
[QUOTE]You might be confused by the fact that the logic following "cancelmessage:" is executed regardless of whether or not there is an error.[/QUOTE]Yeah, error trapping is not the easiest thing in the world. BTW, [I]is [/I]there an easier way to do this (e.g. if cancel = "" then)??? [quote]The second time through the loop, …
Re: Dialogbox and Cancel
Programming
Software Development
16 Years Ago
by hopalongcassidy
You are still always going to "cancelmessage:". try the following code: Do On Error GoTo cancelmessage comdia.cancelerror = True comdia.Filter = "*.doc" comdia.InitDir = "C:\" comdia.filename = "" comdia.ShowSave GoTo endloop cancelmessage: Select Case Err Case 32755 MsgBox "You must save…
Re: Dialogbox and Cancel
Programming
Software Development
16 Years Ago
by Prozeen
Hooray, I think I've finally worked it out... The code below displays a "Save As" dialog box. It then shows a message box if the user clicks on the Cancel button (or if they try and close the dialog box.) Then it continues to show the "Save As" dialog box, until a valid filename is entered and the user clicks the Save button.…
Re: DialogBox() function and function pointer in class scope
Programming
Software Development
16 Years Ago
by Comrade Ogilvy
The issue arises because a window/dialog procedure is an alias(typedef) for a pointer to a function taking four parameters and returning a non-void 'value'. Your non-static member class function does not match this type(it's encumbered with [b]this[/b]), while a static function does. Obviously, you could also make the callback procedure global or …
Re: DialogBox() function and function pointer in class scope
Programming
Software Development
16 Years Ago
by fisch
Many thanks for your quick answer! I had thought about the static solution and wasn't very happy with it. But as there isn't an other way to solve it, apart from the global scope solution, I will try to implement it as static. Once again, many thanks! fisch
Re: DialogBox() function and function pointer in class scope
Programming
Software Development
13 Years Ago
by ashish.maske
hi.. i have a *.csv file .. now i want to relocate this file using windows saveas dialog box ..please reply if u have any solution thanks
Re: ByPass cutePDF dialogBox
Programming
Software Development
14 Years Ago
by FthrJACK
Try DoPDF Its free, and works well too.
Re: Adding Menu to windows dialog created with DialogBox()
Programming
Software Development
14 Years Ago
by ashishchoure
it is so easy brother first add menu(create new or existing one) to your resource file. now go to your dialog and select whole dialog not any control then right click on it then goto property and select Menu option and give menu id thats it now compile and run the app menu is attached to it
Re: Adding Menu to windows dialog created with DialogBox()
Programming
Software Development
14 Years Ago
by shea279
Thanks, that worked brilliantly. I knew it was something very simple.
Re: Using DialogBox in a separate class (non-MFC)
Programming
Software Development
11 Years Ago
by Ancient Dragon
Is MainWindow::MainDlgProc() a static method? Only static methods can be used as callback functions. Check out [this link](http://winprog.org/tutorial/dialogs.html)
Re: Using DialogBox in a separate class (non-MFC)
Programming
Software Development
11 Years Ago
by sujayg
Look at this post http://www.functionx.com/win32/Lesson04.htm
Re: Using DialogBox in a separate class (non-MFC)
Programming
Software Development
11 Years Ago
by dshiells
ARGH! So many hours lost for something so simple, thanks Ancient Dragon!!
Re: Need VB code to open "Open With" Dialogbox
Programming
Software Development
18 Years Ago
by Comatose
in a code module: [CODE]Public Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long Sub OpenWith(ByVal xFileName As String) ShellExecute 0,…
1
2
3
11
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC