Okay, getting there...
The WinHelp (pHelpInfo->dwContextId, HELP_CONTEXTPOPUP); does what it's supposed to (tested by simply putting it in a button), however I still can't get the questionmark on the dialog itself to do anything. I'm starting to feel it's missing something it probably shouldn't be.
The help for WS_EXCONTEXTHELP says:
Includes a question mark in the title bar of the window. When the user clicks the question mark, the cursor changes to a question mark with a pointer. If the user then clicks a child window, the child receives a WM_HELP message.
However, NOTHING happens when I click on the questionmark - no cursor change, nothing.
Am I missing something obvious or is my dialog just insane?
It simulates a PC with certain OS, this means that it's capable as let's say having a second pc, with the given configuration, so one may test his code on a single PC using VMWare instead of testing it on multiple platforms, I had certain bugs in my app, which I encountered on win2000, I made a vmware station with win2000 and got the same problem, made the fix, and it's working, so according to my experience it's great for testing purposes and up to this point for me is 100% accurate
I have created a class derived from CFileDialog. I am having trouble finding literature regarding accessing the member controls of the standard dialog.
Example: When the user changes the filter, I want the window to change the current folder. I have created an event handler that is called when the user changes the filter, but I do not know how to access member vairables that will force a change in the current folder.
This is one exmaple. there are toher properties I am intersted in modulating. Such as enabling and disabling folders etc.
hi, does any one know how to put a small java script code (about 10 lines) into a c code script?
what i am doing is creating a web page (by putting html in the c code)
and it works but now i want to add java in and it does not work.
i thought it was like this:
It is now "
"var currentTime = new Date()"
"var day = currentTime.getDate()"
"var month = currentTime.getMonth()"
"var year = currentTime.getFullYear()"
"document.write(day + / + month + / + year)"
by doing this, the only thing that shows up on the web page is the top part of the page i created, then "It is now" and then on the following line is "variable status" but what i wanted it to do is after "It is now" it should show the correst date on the webpage.
It is now "
"var currentTime = new Date();\r\n"
"var day = currentTime.getDate();\r\n"
"var month = currentTime.getMonth();\r\n"
"var year = currentTime.getFullYear();\r\n"
"document.write(day + / + month + / + year);\r\n"
Yes I did, even though that is the default in VB. I even tried some slight of hand, by changing the prototype slightly and passing the actual pointer via VarPtr(), but it made no difference in the result. What bothers me is that I had to pass ClassGuid to the SetupDiClassGuidsFromNameA function inorder to fill the GUID structure and it succedes every time. I can even use the various slight of hand modifications, I tried with SetupDiGetClassDevs, on SetupDiClassGuidsFromNameA and it still succedes.
Any way I think the guys on the VB forum may be able to help. I've been ask to post the code, and I will be doing that there on monday (since I do not have it here).
Mean while I just wrapped it up in an ATL COM object (ActiveX control), so that I could consentrate on other details for awhile.
F.Y.I. I found a free program on the www called ApiViewer.exe (ApiViewer 2004) that produces declarations for almost every thing, unlike the viewer that comes with VB. Although you need to verify that they are correct yourself, since the prototype for SetupDiGetClassDevs was incorrect (no return value specified).
"The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes."
Andrew W. Troelsen