|
The 'OnWizard...' functions should be what you are looking for. When Wizard mode is active, these are the functions called for validation. You return FALSE to tell MFC to ignore the request. That is, if the user clicks on the 'Finish' button then 'OnWizardFinish' is called, and you would return 'FALSE' if you did not want the dialog to close.
What exactly happens? Which button do you click ? Which of the the 'OnWizard...' functions is being called (or not called)?
Ian Kilmister
|
|
|
|
|
Thanks Ian,
I had tried all three OnWizard... functions. But I must have done something wrong. I tried OnWizardFinish again and it miraculously worked straight away!
Thanks again.
Tom
|
|
|
|
|
hi
is it possible to get the handle to a submenu using the id of the menu item in the menu bar
thanks
subir
|
|
|
|
|
Popup menus don't have IDs, so you have to access them by their position.
HMENU hmenu = GetMenu(hwnd);
HMENU hFileMenu = GetSubMenu(hmenu, 0); // file menu is position 0
HMENU hEditMenu = GetSubMenu(hmenu, 1); // edit is 1, etc...
--Mike--
http://home.inreach.com/mdunn/
Is history an illusion caused by the passage of time, or is time an illusion caused by the passage of history?
|
|
|
|
|
I have my own class derived from CToolbar, and I want it to look like it's docked ( no caption bar, gripper on the left ) when it is floating. Can anyone suggest how I might achieve this ?
Thanks
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
I have my own class derived from CToolbar
Haven't tried it before! One idea would come to mind is what if you override the non client stuff, the WM_NC***** CWnd virtuals! and make your own codings!?
|
|
|
|
|
I have my own class derived from CToolbar, and I want it to look like it's docked ( no caption bar, gripper on the left ) when it is floating. Can anyone suggest how I might achieve this ?
Thanks
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hello Christian,
How are you!
I had this same thing in mind and I last tried it 2 weeks ago by overriding the default NC messages, but it seems it won't work! It actually works but the defualt stuff comes back!
I tried to programicly float the toolbar and it works inbetween here! it draws the whole window+caption with my gradient filling colors!
Also tried to get the menu to delete the Close & Move items, assertions occur (violations in the DeleteMenu(xxx) stuff!).
I wonder/interested if you tried and had any good result with this!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud Samimi Go!
|
|
|
|
|
No, I'm still in a hell of my own making. I wouldn't mind a look at your code - my email is cgraus@isw.net.au if you feel inclined. I have got the move/close items to go before, but to be honest, I've not had time to look at it for ages, I was just thinking about it again last night. Maybe if no-one else knows how to do it we could collaborate and produce an article on the subject ?
Christian
The content of this post is not necessarily the opinion of my yadda yadda yadda.
To understand recursion, we must first understand recursion.
|
|
|
|
|
Hi Christian!
I'd be happy to join forces with you!
I'll put together some clean code project (VC++6 SP3, Win98) and send you soon!
"Socrates is a man. All men are mortal.
Therefore Socrates is mortal."
-- Aristotle (syllogism)
Cheers
Masoud Samimi Go!
|
|
|
|
|
I'm working with a wizard and I need to resize it, I have found the buttons ID's, but I can't find anywhere the ID of the separator (the line at the bottom that separates the wizard buttons of the "property pages").
Is there any way to find the ID's? now I'm cycling through the dialog and moving each window to see the results and to get the numerical ID.
Thank you very much.
|
|
|
|
|
Spy++ will show you window IDs (along with everything else about a window!)
--Mike--
http://home.inreach.com/mdunn/
Is history an illusion caused by the passage of time, or is time an illusion caused by the passage of history?
|
|
|
|
|
first of all thank you for reading this question.
the problem:
I'm developing an application that is intended to control a machine. In order to control the machine it use some files that the user writes a kind of programs.
There are some tasks that are easily done by the use of assistants, but now I only know two situations that would be better if It would be solutioned by assistants, but I'm sure that when the client have worked a little with the program he/she will ask for some expansion modules.
How could it be done? (an example would be great)
Thank you again.
|
|
|
|
|
This problem can be overcome by using the WHS.It enables powerful scripting using languages such as VB Script, Java Script, and Perl.
I suggest you take a look at IActiveScriptParse and IActiveScript or use a commercial library such as HyperHost or Hyper Studio, It is owned by Dundas Software.
G. Alfadhly
famous Last Words
"TRUCK!!!!!"
|
|
|
|
|
Hello,
Can anyone tell me how can I get the system date into my own field? What instruction shall i use?
You can e-mail me at pmfsilva@net.mailcom.pt or over here.
Thank you.
Have a nice year!
|
|
|
|
|
CTime time;
time = CTime::GetCurrentTime();
|
|
|
|
|
CTime time;
time = CTime::GetCurrentTime;
|
|
|
|
|
SYSTEMTIME st;
GetSystemTime(&st);
- Anders
|
|
|
|
|
I had a problem with the GetSystemTime() function. When it is 4:00 pm the date changes to the next day. So i was curious if this only happens for me.
Thanks
|
|
|
|
|
I have never seen that problem...
- Anders
|
|
|
|
|
Not sure that this applies, but it may shed some light on the matter.
GetSystemTime - returns Coordinated Universal Time.
GetLocalTime - returns the local time.
Chris
|
|
|
|
|
I have two program which access the same database file. Both program are always running. When one program makes a change to one or more of the records, the other program does not know and will access information that is not there.
|
|
|
|
|
Did you find the way to solve your problem i'm with the same problem in CRecordset and i can't find the way .... if you know how to solve this i would apritiate some help in it !
by the way : how do you show all record in a list and access the record on a double click (for instance) ?
|
|
|
|
|
did you find the answer for this ??? I'm trying to get to the same result and seems that i can't do it !
I would apritiate your help if you can,
Ariel.
|
|
|
|
|
Pardon me in advance if this turns out to be a dumb question.
When and how does an entry for a doc template resource id get created?
I assume for a single document in an MDI that it was built through the info given to AppWizard when gen'ing the initial file set. But specifically, I am puzzled by the VIEWEX sample's IDR_SPLIT3TYPE. How, where and when did its string get generated and its table entry made?
DUH in advance,
Tom
|
|
|
|