Hey all, I've got to create 5 similar dialogs for a new app I'm writing. All 5 dialogs have the same 3 controls on them (a couple of CStatics and a CEdit control) in addition to a few controls that will be unique for each of the 5 dialogs. Is there any way to accomplish the following? - Create a base dialog (CBaseDialog), derive it from CDialog, add those 3 common controls to it. - Use that new CBaseDialog class as the base class for my 5 similar dialogs so that I don't have to copy/paste the 3 controls onto each of the 5 dialogs? I'm thinking that since the controls are created from the resource file, I might run into a problem with something like that... Thanks. -Mike -Mike Zinni "Don't take life too seriously, you'll never make it out alive" - Van Wilder
Mike Zinni
Posts
-
Subclassing Dialogs -
Looking for a control...Hey all, I've got a configuration app to write, and I think that the tree/grid control that the VS.NET 2003 IDE uses for Class properties would be a perfect fit. Anyone know what it's called, or where I can find it? Here's what I'm talking about: http://www.saxmanwebs.com/upload/./userfiles/Zin/PropControl.jpg Thanks! -Mike Zinni "Don't take life too seriously, you'll never make it out alive" - Van Wilder
-
New England Road TripNewport, Rhode Island is a great place during the summers. Very touristy, but fun at the same time. Maybe I'm a little biased because I'm a doorman at one of the more popular bars down there... Either way, enjoy your trip! -Mike Zinni "Don't take life too seriously, you'll never make it out alive" - Van Wilder
-
TJOTDTerrible Joke of the Day: (from the pages of Maxim magazine) Q: Who is the complete opposite of Christopher Reeves? A: Christopher Walken... Awful... Absolutely awful... -Mike Zinni "Don't take life too seriously, you'll never make it out alive" - Van Wilder
-
Pamela fights for chickens!Jason Henderson wrote: Yeah, I'm craving chicken, not "washed-up-model-with-fake-boobies". Hey dude, to each their own. Crave whatever you want to. It's cool, really. Nothing to be ashamed of... :laugh: -Mike Zinni "Don't take life too seriously, you'll never make it out alive" - Van Wilder
-
Pamela fights for chickens!Jason Henderson wrote: Anybody else hungry for KFC after reading that? It's high noon so maybe my stomach is thinking for me. Are you sure it's not some other part of your anatomy doing the thinking?? -Mike Zinni "Don't take life too seriously, you'll never make it out alive" - Van Wilder
-
Costume ideasOne of the better ideas that I've ever seen was a man dressed in completely plain clothes and a medium size cardboard box with the front panel cut out on his head. The box had some make-shift curtains pulled to either side and a tin can with a few dollar bills stuck in it. He had a sign around his neck that read "Kissing Booth - $1". Very popular with the women as the night progressed and the alchohol flowed. -Mike Zinni "Don't take life too seriously, you'll never make it out alive" - Van Wilder
-
Wireless home networking...Hey all, I'm looking to wirelessly network my house and I was wondering what experiences my fellow CPians have had with this adventure. I've read a good amount about using 802.11g over it's sibling 802.11b, and I've seen some LinkSys kits that'll get me started, but I'd really like some real world advice from people who have already gone through the whole process. Anything you could share would help a ton. Thanks. -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Las VegasMike Mullikin wrote: Computer geeks are this town's worst nightmare -- You don't like girls and you're good at math. Yea, well for this geek, he's only half right... :cool: I'll give you a hint, I'm really good at math.. -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Las VegasPaul Watson wrote: Visit Venice, they moved it Gondola by Gondola from Italy to Las Vegas... in the desert... Actually, it's funny that you bring up Italy because I just made plans to head there next year for a few weeks. Looks like I'll be cracking open that "Italian for Dummies" book again. I refuse to be one of those ignorant tourists that can't speak to anyone. I'll just be ignorant in another language. ;P -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Las VegasChristopher Duncan wrote: Noooooooooo, no. Yea, I didn't think so... :cool: Christopher Duncan wrote: I'd only meant that these days, everybody is a programmer, or at least so it seems. I definitely hear what you're saying, but I think I'd modify that statement slightly to: "these days, everybody thinks they're a programmer". And just for info's sake, the quote in my sig came from one of my engineering professors at URI after he heard a group of us complaining about how much work we had to do. Funny where you find the quotes that stick with you... -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Las VegasChristopher Duncan wrote: 2003 update: everybody and their sister is a programmer now. Are you sure you want to jump start another "software engineer vs. programmer" debate?? :-D Just writing code is a hell of alot easier than designing, documenting, implementing, and maintaining it, no? -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Las VegasHey, are there any CPians out in the Las Vegas, Nevada area? I'm going to be heading out there this Friday for 5 days and wouldn't mind some first hand advice on things to do and places to go at night. I'm not a very big gambler, so I'm thinking the nightlife is going to get the best of me. Thanks. -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Time to pick up german againJörgen Sigvardsson wrote: Anybody else here planning on learning another language? Yea, actually I'm planning a trip to Italy next year with a friend and his family and I'd like to be able to have a conversation with the native italians in their own language. Not sure how I'm going to learn it yet, though... -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Betcha can't...How weird is this .......? While sitting at your desk make clockwise circles with your right foot. While doing this, draw the number "6" in the air with your right hand. Betcha can't do it!! -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Love for Macs. -
What's for lunch?Sushi from the local Japanese restaurant. - 8 pieces of sushi and a California roll. Extremely good stuff. -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
How many people use fubar?I use it here and there. I've also become accustomed to using 0xDEADDEAD and the likes throughout my embedded code. Anyone else having some fun with hex in their stuff? -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
Advice anyone?Real Genius - Val Kilmer Older movie about a bunch of geeks at a very prestigious college who unknowingly create a super weapon in the lab. Ridiculously funny.
Robert Prescott as Kent Torokvei: You are just a bunch of degenerates.
Val Kilmer as Chris Knight: We are, but what about that time I found you naked with a bowl of jell-o?
Kent: You did not.
Chris: This is true.
Kent: I was hot and I was hungry, okay?You can listen to a few more quotes here[^]. Enjoy! -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."
-
My mom still doesn't know what I do...It's even better when your mother tells someone that you're an engineer, and the person asks her what railroad you work for... Not that it's happened to me or anything like that... Of course not... Amazing, simply amazing... -Mike Zinni "No shit it's tough. If it wasn't, everybody and their sister would be an engineer and then you wouldn't have a job."