Click here to Skip to main content
15,890,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
leon de boer15-Aug-16 21:11
leon de boer15-Aug-16 21:11 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
Richard MacCutchan15-Aug-16 23:57
mveRichard MacCutchan15-Aug-16 23:57 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 2:02
ForNow16-Aug-16 2:02 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
Richard MacCutchan16-Aug-16 3:00
mveRichard MacCutchan16-Aug-16 3:00 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 3:04
ForNow16-Aug-16 3:04 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
David Crow16-Aug-16 4:07
David Crow16-Aug-16 4:07 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
Richard MacCutchan16-Aug-16 5:27
mveRichard MacCutchan16-Aug-16 5:27 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
leon de boer16-Aug-16 3:37
leon de boer16-Aug-16 3:37 
There are more in MFC because it is technically easier for the amateur to play with. In the same way Visual Basic has a following and takes up a lot of programming space for what it really is. Your coding is now clearly moving well beyond amateur and you clearly grasp what is actually happening at the lower levels so there is no reason you couldn't get rid of the training wheels being provided by MFC.

Commercially it isn't about what is more used it is what will survive over time. So long as Windows exists you will be able to port code written on native Win32 API and the Win64 API system already fully supports all the Win32 API. In fact the old original Win16 API is still pretty much supported intact in both these systems. It's the simple reason companies spending serious bucks on coding that is expected to last a long time insist on it. Now if you are playing in short lived markets like games, webpages etc you don't worry about that so much. Given you have got your head around the API something most amateurs struggle with to me at least it just seems silly to not code on it especially if you are doing this commercially.

On large scale Commercial windows programs you will be almost always be on Native Win32/Win64 (possibly with .NET) unless you are playing with a very specific market. A quick look at Microsoft/IBM and strangely even google programmer demographics shows you that. The other major thing that same majority can do is program in Java.

The reason you choose any framework should always be for speed of development but the downside is the framework is always a liability for ongoing support.

If all you are using MFC is to create dialog and windows layouts you would be better off using a Resource Editor to visually lay up the windows/dialogs and then directly load the resource files. Both C# and WPF framework use this trick but most of us old timers do it that way with code stubs we have written. I have a couple of functions in my private library that can read RES/RC or dialog resource DLL files and return to you the constructed window when requested. The formats are really not challenging and it's all well documented on the internet.

I use Resource Builder from Microsoft which has a price tag but if you want to play with the idea, OpenWatcom C++ and LCC_32 have free resource editors and are free to play with. You can load save .RC or .RES files directly from the visual editors. If you want some stubs to load the files at runtime I am happy to provide some functions.
In vino veritas

GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 3:59
ForNow16-Aug-16 3:59 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
David Crow16-Aug-16 9:51
David Crow16-Aug-16 9:51 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 9:56
ForNow16-Aug-16 9:56 
QuestionRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
David Crow16-Aug-16 10:20
David Crow16-Aug-16 10:20 
AnswerRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 10:24
ForNow16-Aug-16 10:24 
QuestionRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
David Crow16-Aug-16 10:29
David Crow16-Aug-16 10:29 
AnswerRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 10:37
ForNow16-Aug-16 10:37 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
leon de boer17-Aug-16 14:17
leon de boer17-Aug-16 14:17 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow17-Aug-16 14:34
ForNow17-Aug-16 14:34 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
Richard MacCutchan17-Aug-16 21:31
mveRichard MacCutchan17-Aug-16 21:31 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
Stephen Hewitt25-Aug-16 6:36
Stephen Hewitt25-Aug-16 6:36 
QuestionHow to master C++ Pin
Ratul Thakur13-Aug-16 4:06
Ratul Thakur13-Aug-16 4:06 
AnswerRe: How to master C++ Pin
David Crow13-Aug-16 4:16
David Crow13-Aug-16 4:16 
AnswerRe: How to master C++ Pin
Richard MacCutchan13-Aug-16 5:08
mveRichard MacCutchan13-Aug-16 5:08 
AnswerRe: How to master C++ Pin
manjiriV23-Aug-16 1:42
manjiriV23-Aug-16 1:42 
AnswerRe: How to master C++ Pin
CPallini23-Aug-16 1:46
mveCPallini23-Aug-16 1:46 
AnswerRe: How to master C++ Pin
Saravanan Sundaresan24-Sep-16 21:32
professionalSaravanan Sundaresan24-Sep-16 21:32 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.