... Sorry for the late reply. I'd forgotten how to fix this, but now I've remembered. The trick is to add the WS_EX_DLGMODALFRAME extended style, perhaps...
1. Any compiler/linker worth its salt will remove duplicate template code, better ones will also remove extra template code generated from templated classes...
Hi everyone, We have a multi-SDI app and everything seems to work perfectly until you shut one of the SDI instances down. Then the remaining SDI instances...
Hi everyone, ... until ... I'm starting to narrow it down. It has to do with the CCommandBar class and the way we use it. The WTL Multi-SDI example has it as a...
... code, better ones will also remove extra template ... arguments but which result in the same machine code. I believe VC ... article than detailed this...
... The as-if rule implies a C++ compiler must produce a program that behaves as-if it had followed the virtual machine rules in the C++ Standard. If I call...
... f<long> ... linker ... when we ... will ... My sample does not try to call the function and detect from inside the function which instantiation is being...
... My ability to confuse the issue has struct again. assert(pf1 != pf2) will not guarantee f<int>() doesn't secretly call f<long>() (or vice versa) when you...
... I finally solved the problem. It turned out one of the programmers on the team was using a static message handler for the status bar class. All those...
... well-defined ... Ah, I see. I guess this is a valid optimization, does not seem to be anything wrong with it. Does any actual compiler/linker behave this...
... way, ... and ... do ... Well, maybe Andrew McDonald knows. I would really like to find out exactly which compilers are better than those worth their salt....
... I don't care. My sane subset (which now includes SDB) is much narrower than my envelop, and already tuned for such optimizations as matter to real ...
In my app I have a few frame classes managed by the same thread, and I would like to have a pointer to the active frame in the main instance class: class...
I think this has been discussed in the "Simulated dynamic binding" thread. You can do something like. class CMyFrame : public CWindow { public: // Put your...
... WTLs simulated dynamic binding _is_ the problem :) ... unfortunately this won't work for me my common functionality requires access to CFrameWindowImpl so ...
... Or, you can create an abstract class (interface) with all the common operations you think you might need, derive all your frame classes from it and...
I'm still thinking about how to do this elegantly with an intermediate base class (likely with a templated constructor but not templated class sig), some...
... thanks Igor this answer confirms my suspicion that there's no simple "cheap trick" with castings etc to access CMainFrames polymorphically. i'll need to do...
What i usuall do is create a small base class that has my template so say CBasePane : CWindowImpl<CBasePane> Then every pane has it's own sublcass. The main...
... I don't know if this will help, but I faced a similar problem with some splitter windows that were either horizontal or vertical, and I wanted a generic...
... thanks Scott unfortunately my problem is with multiple _frames_ not views the latter are "easily" dealt with as you mentioned, deriving specialized...
5667
Carlos Pizano
cpizano@...
May 6, 2003 7:18 pm
Do you want to pay the price for RTTI? if so, I believe there is a way to simulate the magic cast that you need. CPU. ... From: Nikos Bozinis...
... i went one step further with splitters myself i copied the whole class in a local "atlsplit2.h" and I edited to taste, removing the templated argument for...
Hi all :) First, I'm happy to join your group, I've learned a lot :). I wrote a little application with WTL template (based on a dialog). All work fine. But I...
Hi - Welcome. Personally I'm not aware that this particular control has been ported to WTL. However, it should be pretty straight forward. When I first started...
Hello, May I get a copy of your adapted splitter, I have the exact same problem (vertical or horizontal gui) for tablet pc, and I must use a compile time...
... Noël the conversion was really easy, I just moved t_bVertical from the template list to the class variables & added some initialization code. If you give...