|
I have done exactly that.
I am trying all this with a pretty clean workspace.
In fact I only ran the appwizard to create a dialog box based frame and all I have on the main window, is this Tab Control, which I want to display the dialog, just as per the snippets of code that I have posted.
There is nothing else than just the frame that the appwizard has created.
So if you want to give it a go, it would be very quick and easy to come to the same point.
Any other ideas/hints?
Do you think it is the right thing to create the object in the ONSELCHANGE function?
I mean I tried it in the OnInitDialog(), but the compiler didn't like it.
What else can I try... crazy this can't be so difficult. How many thousands of applications are out there that use something like this.
Please help
|
|
|
|
|
Hello out there, ... I just thought I post a last message to this case to let anyone who ever happens to read this thread by accident (or intention) know, that I have now managed to get things going.
My child dialogs are now working (almost) perfectly as contents of the individual pages of a tab control. Just some cosmetics that I have to tidy up.
While getting more and more frustrated, that I couldn't get something simple like a tab control going the way I wanted, I almost gave up.
The ultimate break-through was not until I came across the article from Andrew Lawrence ("Tabbed Dialog without Property Sheets"). I found this article just fabulous!!! It answered my question a hundred percent, and - while studying it - I learnt heaps more.
For the beginner of VC++ this is a highly recommended article!!!
I would like to take the opportunity to thank Andrew very much.
Many thanks also to you Superman for your patience and attempt to help. You were on the right track with your advice, but my ignorance about basic concepts prevented me from actually putting things right.
Keep up the good work
|
|
|
|
|
Read this[^] for starters.
p.s: something you should pay attention to, be sure to override the OnOK and OnCancel (or whatever you want to hook WM_COMMAND with IDOK and IDCANCEL to) methods otherwise when the user hits ENTER ot ESC while the focus is in one of your child-dialogs, the dialog will disappear...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
|
Hi,
Is there any machenism using Shell or anything else to calculate the size of a folder?
|
|
|
|
|
|
Is there any API like when window context menu propprty method?
As windows calculates size very fast, there should be any API like this.
|
|
|
|
|
MPTP wrote: there should be any API like this.
Not in my information. There needs to be a class(article) for this requirement. So you should understand there is no such API.
MPTP wrote: As windows calculates size very fast
Have you tried class in given link ? Isn't that fast ?
|
|
|
|
|
prasad_som wrote: Not in my information.
You are right. I checked the call stack using process explorer while the size is been updated in the property sheet. It is using some function called SizeThreadProc() in the shell32.dll . May be if we can figure out the prototype of the funcion, it will be a nice hack.
|
|
|
|
|
Naveen wrote: SizeThreadProc()
Looks like callback function. Must be adding up size of individual file in folder structure.
|
|
|
|
|
hmmm...
BTW happy to see you back on codeproject. What happened in between?
|
|
|
|
|
Naveen wrote: BTW happy to see you back on codeproject.
Thanks ! And congrats for being awarded as MVP.
Naveen wrote: What happened in between?
Changed employer, Changed country and busy with work.
|
|
|
|
|
Hi All.
I want to convert .ost file to .pst file.
Just FYI, I am not looking for a any tool/executable i.e. oct2pst.exe to do the same, rather I am looking for some set of libraries for this implementation. If anyone can provide some pointers for the same, that will highly appreciated.
Also, if possible please provide some details regarding the file structure for these .exts.
Incase any information required, please let me know.
Thanks and Regards.
PanB
|
|
|
|
|
OST to PST Solution provides facility for user Convert OST File to PST Solution with the help of OST Recovery Tool. OST PST Solution can swiftly recover and restore all your important emails, contacts, task, calendar, Journals etc from OST file to PST file solution even after Exchange server crashed. more info-: http://www.osttopstconversion.us/
|
|
|
|
|
how to convert time_t variable to formatted date
eg The long value [12345678900] to dd/mm/yyyy hh:ss
vineesh
|
|
|
|
|
Use the localtime function to convert time_t to struct tm .
Then use string formatting to get the required format.
«_Superman_»
|
|
|
|
|
Check the sample code at the end of this [^]documentation.
|
|
|
|
|
|
|
I have modeless dialog is derived from CDHTMLDialog that is hosted in DLL linked to MFC statically.
the problem is that keys such as tab don't work.
I have read Google documentation
1. for class derived from CDialog the solution in kb233263 work
2. for class derived from CDHTMLDialog this solution does not work
3. regarding the solution kb175502 PreTranslateMessage(MSG* pMsg) is not called for the dialog class, so I don't understand what to do there
Thanks for any help
|
|
|
|
|
Hi All,
I need to change border color of dialog window in MFC.
Please help me..............
Thanks Regards,
Anitha
|
|
|
|
|
The only way i can think of now is to draw your own border using WM_NCPAINT, but this can be a real pain in the rect.bottom...
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
Hi,
I have created one MFCAppWizard Exe application, there i have inserted ActiveX control (Media player OCX). I have changed the move slider position from starting to some wheere and able to recieve the correct postion through event.
Now i want to set the slider position to some number.
How can i set, which function i have to use..
Can any one please help me regarding this.. as it is very urgent requirement for me..
Thanks
Venkatesh.
|
|
|
|
|
Before answer this question I want to ask of you,can you use of MCI functions instead use activex's? its not hard to use and codeproject has articles about MCI(you can use of them like CMI or CSI). if you like to use of them see "A Basic Media Player" it uses of MCIWNd wrapper class and it contains a slider bar for you answer or see "Palying mp3s using MCI"(but its languae is C# but I think its very helpful for you if you know C#).
Of one Essence is the human race
thus has Creation put the base
One Limb impacted is sufficient
For all Others to feel the Mace
(Saadi )
|
|
|
|
|
Hi,
Thanks for your response on this.. but i think only one function is enough to set the video scroll bar from one position to other right..?
I need which default function is available for getting this work done..?
Thanks
Venkatesh.
|
|
|
|