Type: Posts; User: ovidiucucu
Search took 0.15 seconds.
December 23rd, 2014, 04:37 AM
If you are talking about CopyFile function, please note that it simply copy a file and does NOT perform any conversion.
December 6th, 2014, 09:10 AM
If you want to customize the look of controls which have Visual Styles then probably you have to use Visual Styles API.
November 25th, 2014, 06:28 AM
Beware of lambda expressions in WinAPI Applications! C++11 lambdas are great but still buggy. Stay cool and wait a little! ;)
November 18th, 2014, 05:47 AM
"When in Rome, do as Romans do!"
That is completing what Igor already said and means in this context "if deal with menus, use menus' documented stuff!"
If you want to write your own menu class,...
November 16th, 2014, 10:56 AM
Don't need to "subclass" a menu. Just handle the WM_COMMAND message which is sent to the owner window when the user selects a menu command item.
See WM_COMMAND message documentation in MSDN.
November 16th, 2014, 08:39 AM
That's pretty cool! :thumb:
November 9th, 2014, 07:58 AM
Making an application with the same look & feel in all platforms is not always a wise idea.
For example, Mac OSX and Windows applications have pretty different standard look & feel. ...
November 9th, 2014, 07:05 AM
Not mandatory but yes, I would like to recommend using MFC even in new Windows applications as a good option. You can easily benefit of MFC support for modern UI such as docking windows, enhanced...
November 8th, 2014, 11:24 AM
If cross-platform is not a must, it has no much sense to "get rid of MFC". It's much easier to port a legacy MFC application from older to a newer version than rewriting it from scratch using another...
October 20th, 2014, 08:20 AM
Just click http://bit.ly/ZCw3JP.
October 15th, 2014, 08:07 AM
CHtmlView class "provides the functionality of the WebBrowser control within the context of MFC's document/view architecture".
See also how to make a simple Web Browser.
Further, if you want...
October 14th, 2014, 09:40 AM
I have seen one demo here http://codexpert.ro/blog/2014/02/02/multiple-view-file-explorer/. :)
Well, you can easily make tabbed views in an MFC application if have at least Visual C++ 2008 SP1 (or...
October 14th, 2014, 06:27 AM
It's not much useful to have the IE (or other browser, open-source or not) source code, except if you are effectively developing it.
More practical is to use its interfaces (which are documented) to...
October 13th, 2014, 05:10 AM
One additional remark, regarding your code.
It is not necessary to handle WM_PAINT or WM_ERASEBKGND message for changing the dialog's background color.
A better way is to handle WM_CTLCOLOR.
October 13th, 2014, 04:37 AM
The standard way to hide the "Help" button in a property sheet is to remove PSH_HASHELP and PSP_HASHELP from PROPSHEETHEADER structure (contained in CPropertySheet) and PROPSHEETPAGE structure...
October 13th, 2014, 03:34 AM
As a good PM may think "if the task says 'create a timer', then focus on the task and write a timer and nothing more".
As a good developer may think a little bit beyond: "is this enough or must do...
October 11th, 2014, 09:27 AM
How else? :)
KISS as well:
// Somewhere in my CMyWindow message handler
m_nCallbackTimer = SetTimer(nIDEvent, uElapse, &CMyWindow::MyTimerProc);
Mission accomplished, but don't simply...
October 10th, 2014, 07:24 AM
I never heard about that.
October 10th, 2014, 07:11 AM
Whoau, that scares me! :)
This case is easier to make your own PropertySheet and PropertyPage classes. But still needs a lot of sweat...
Why don't you follow the standard UI?
October 10th, 2014, 06:13 AM
...and probably, we have to further choose a solid C++ interface over Windows message queue (and so on, and so on), eventually by using at least three patterns from "Architect's Little Red Book". :)
October 10th, 2014, 05:37 AM
[ continued ]
You can find attached here a simple demo project that uses a property sheet in wizard mode.
Basically, all I have done is the following:
created a new...
October 10th, 2014, 03:41 AM
Looks like a property sheet in wizard mode: http://msdn.microsoft.com/en-us/library/windows/desktop/bb774538(v=vs.85).aspx#propsheet_wizards.
If using MFC, that can be easily made with...
October 9th, 2014, 10:19 AM
I kindly did it.
But your code is enough shuffled (calls message handlers from message handlers, calls SetTimer from DoDataExchange, creates dialogs when handling WM_TIMER, etc.) and the program...
October 9th, 2014, 09:11 AM
Probably, the word "inbuilt" used here is not very clear for me. :)
So let me try do detail a little bit by quoting from MSDN:
All details can be found here:...
October 9th, 2014, 08:39 AM
You defined about five classes and wrote over one hundred lines of code just for dealing with ::SetTimer, ::KillTimer and a callback procedure.
IMHO, that's too much and breaks the KISS...
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.