Click here to Skip to main content
14,974,240 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 3:59
MemberForNow16-Aug-16 3:59 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
David Crow16-Aug-16 9:51
MemberDavid Crow16-Aug-16 9:51 
GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 9:56
MemberForNow16-Aug-16 9:56 
QuestionRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
David Crow16-Aug-16 10:20
MemberDavid Crow16-Aug-16 10:20 
AnswerRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 10:24
MemberForNow16-Aug-16 10:24 
QuestionRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
David Crow16-Aug-16 10:29
MemberDavid Crow16-Aug-16 10:29 
AnswerRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow16-Aug-16 10:37
MemberForNow16-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
Memberleon de boer17-Aug-16 14:17 
Clearing some confusions between Richard and yourself. The free version of Visual Studio doesn't have the visual resource editor. It only has the resource view window in the IDE that allows you to see the names in the RC file, but does not let you visually edit it. If you only have the free version of VS you will never have seen the visual resource editor.

That aside all any visual resource editor does is allow you to play around visually with the files in the RC file and then save that file. Things that drive you nuts like TAB order, or aligning text inside or around bitmap backgrounds or text cutting off like you described. As I said there are a couple of free options that will allow you to do that if you haven't seen the visual editor it's worth looking at.

Now I will explain the real world complication when you do this commercially for a product.

The default setup for Visual Studio is to bind your resources directly into your EXE. The first obvious fallout is as the size of your resource file increases so does your EXE file and that can become problematic. Now if you are just using dialog templates and resource ID's, they are tiny and I wouldn't worry. However if you are using lots of bitmaps and icons in resource form that is another thing entirely. The old Win16 exe stub format had the good sense to limit the bound resource size to 64K but win32 allows a full 4GB which is a bit crazy. I sometimes run across 2GB+ EXE from amateurs and the moment you see it you know what is in it, lots and lots of graphic resources. It doesn't even usually dawn on them that having a 2GB EXE is putting stress on windows itself.

The second problem we usually face commercially is human language and monitor specifics. We need different text, fonts and bitmaps for different countries and often different setups for different aspect monitors. So you either need some clever installer, or at runtime you detect windows language and monitor scalings and then load different resources appropriately. The later is almost always how all Microsofts own products do it.

So commercially for large projects the EXE itself usually only binds limited vital resources, all the rest of the resources are bound in at runtime either from File/DLL. Once you have done the code to do that feature, you will find you will always tend to use that rather than resources in your EXE because frankly it's faster and easier. You get a nice clean separation between resources and code and you can manage both independently.
In vino veritas


modified 17-Aug-16 20:23pm.

GeneralRe: Owner Draw Static Control Freezes up application removed message map problem solved Pin
ForNow17-Aug-16 14:34
MemberForNow17-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
MemberStephen Hewitt25-Aug-16 6:36 
QuestionHow to master C++ Pin
Ratul Thakur13-Aug-16 4:06
MemberRatul Thakur13-Aug-16 4:06 
AnswerRe: How to master C++ Pin
David Crow13-Aug-16 4:16
MemberDavid 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
MembermanjiriV23-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 
Questionc++ Pin
Member 1268236611-Aug-16 19:28
MemberMember 1268236611-Aug-16 19:28 
AnswerRe: c++ Pin
Jochen Arndt11-Aug-16 21:42
professionalJochen Arndt11-Aug-16 21:42 
QuestionInconsistentcies Between Win32 and MFC Pin
ForNow11-Aug-16 7:58
MemberForNow11-Aug-16 7:58 
AnswerRe: Inconsistentcies Between Win32 and MFC Pin
jeron111-Aug-16 9:55
Memberjeron111-Aug-16 9:55 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
ForNow11-Aug-16 10:30
MemberForNow11-Aug-16 10:30 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
jeron111-Aug-16 10:46
Memberjeron111-Aug-16 10:46 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
ForNow11-Aug-16 11:31
MemberForNow11-Aug-16 11:31 
GeneralRe: Inconsistentcies Between Win32 and MFC Pin
jeron111-Aug-16 12:24
Memberjeron111-Aug-16 12:24 

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.