Hi; My first post... silly and simple questions, but i've poured through MS Disaster Network (MSDN) and Wrox "Professional MFC 6.0", and can't find answers to easy questions. I've done these in the past, but it's been so long that i've forgotten how. First, how in the blink do you add a custom app icon (upper left corner icon)? I modified the stock Wizard supplied icon (the building blocks one) and yet, the app doesn't use it! It's in the project and the IDR_MAINFRAME rc is pointing at the correct file but... argh! Secondly, I need to intercept both the minimize button on the right of the title bar and also the minimise menu item on the system menu so that when the user clicks on those, I can minimize to the tray instead of the task bar - client requirement (and i'd like to know how to do it myself!). I already have a menu item for minimize to tray (on the view menu), but need it this way too. TIA! Dave LeBlanc
David LeBlanc
Posts
-
Need help quick on a couple of silly simple problems -
Need help quick on a couple of silly simple problemsHi; My first post... silly and simple questions, but i've poured through MS Disaster Network (MSDN) and Wrox "Professional MFC 6.0", and can't find answers to easy questions. I've done these in the past, but it's been so long that i've forgotten how. First, how in the blink do you add a custom app icon (upper left corner icon)? I modified the stock Wizard supplied icon (the building blocks one) and yet, the app doesn't use it! It's in the project and the IDR_MAINFRAME rc is pointing at the correct file but... argh! Secondly, I need to intercept both the minimize button on the right of the title bar and also the minimise menu item on the system menu so that when the user clicks on those, I can minimize to the tray instead of the task bar - client requirement (and i'd like to know how to do it myself!). I already have a menu item for minimize to tray (on the view menu), but need it this way too. TIA! Dave LeBlanc