Type: Posts; User: ovidiucucu
Search took 0.16 seconds.
Just click http://bit.ly/ZCw3JP.
October 15th, 2014, 07: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, 08: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, 05: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, 04: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, 03: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, 02: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, 08: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, 06:24 AM
I never heard about that.
October 10th, 2014, 06: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, 05: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, 04: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, 02: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, 09: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, 08: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, 07: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...
October 9th, 2014, 03:51 AM
Have a look at Redistribution of the shared C runtime component in Visual C++.
Alternatively, you can statically link your project(s) to CRT.
For that purpose, open Project Property, go to...
October 9th, 2014, 03:34 AM
One option is to use XmlLite which is quite easy. (http://msdn.microsoft.com/en-us/library/windows/desktop/ms752872(v=vs.85).aspx).
See also XmlLite Samples.
October 7th, 2014, 08:14 AM
Sorry for being late in this thread!
My short answer to this question is: it has no much sense to write a Timer class.
Closer to the Windows native architecture is to write a Window base class...
October 7th, 2014, 07:25 AM
Completing the suggestion from post #8: before copy-pasting then modifying code examples containing a call to C++ REST SDK function http_request::reply, try to find out what type of...
October 7th, 2014, 06:12 AM
...and about U("...")
U(x) is a macro, also defined in basic_types.h header file of C++ REST SDK.
October 7th, 2014, 05:51 AM
See the answers (#3 and #8) in this thread http://forums.codeguru.com/showthread.php?547185-Input-strings-in-VC-2012.
October 7th, 2014, 05:09 AM
...and about C3493
Let's try to write a simple "Hello lambda!" program!
October 7th, 2014, 03:36 AM
[ off-topic ]
Probably, we have to ask for a new forum section named "VC++ 2012 & C++ REST SDK (codename Casablanca)". :)
[ on-topic ]
Have a look in ...\casablanca\include\cpprest\basic_types.h...
October 1st, 2014, 06:32 AM
Beside that is already answered
You can put a conditional breakpoint in the message loop, e.g. having the condition msg.message == 0x0201, where 0x0201 is the value of WM_LBUTTONDOWN.
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.