hi all, i'm ashamed to ask such questions, but i can't even figure it out how i can form a query to search for this on the web site or the internet... 1. i need to mimic standard menu items from user-defined ones... let me explain, MFC - standard MDI app (made by the wizard) has few standard menu items (File->Open... for example). Now i made a dilog, which has a button in it, and if the user clcks that button, the handler must act like it's a standard CDocument::OnOpenDocument(...) method. I know, I can construct CFileDialog myself, show it to the user and call CMyDoc::OnOpenDocument(string)... but this will defeat Doc-View approach... What can i do? Just send the message ID_FILE_OPEN... to what window than?? 2. right button click and a popup menu appears. what's it name? where can read more about it? thanks for your time! alex debug - is my life style
lobanovski
Posts
-
Right click menu and sending messages -
MFC: customize CFrameWnd background. How?:):):) wow! thank you!!! that't exactly what i looked for! regards, alex debug - is my life style
-
MFC: customize CFrameWnd background. How?Hi all, an MFC application, MDI. VC7. the wizard has generated few classes for me. and one of them is the main frame CMainFrame (CFrameWnd). If there are no children, the user can see light gray background. How can i customize this background (draw a bitmap)? When i do ON_WM_PAINT -> OnPaint(void) { CPaintDC dc(this); // try to draw into dc } no effect! still standard light gray background! how do i cutomize the way background drawn? regards, alex debug - is my life style
-
matching MFC and WTLhi all, how can i match AfxGetMainWnd() in WTL code? the issue is that from child windows or from some other classes i need to get a pointer to MainFrame. AfxXXXXXXXXX does bot work... what does then? debug - is my life style
-
what does "subclassing window" mean?hi all, i do not get a meaning of this saying "subclass a window", but it's used quite often when i deal with wtl, or any other "tricky stuff"... :( what does this mean??? alex debug - is my life style
-
32 and 64 bitsright, thanx :) the scenario you've gave requires .NET being installed on the user's computer. or not? debug - is my life style
-
Really Dumb (easy) Questionok :) small words? you got em :) // a header file class A { public: A(); ~A(); void foo(); }; // a source file int main(int, char**) { A a_object; A* a_[ointer_to_the_object = new A(); a_object.foo(); a_pointer_to_the_object->foo(); return 0; } you see? when you deal with a pointer - you use -> operator...... debug - is my life style
-
32 and 64 bitshi everybody! i was asking this question in "general" forum, but got no replays... ---- i've got an opportunity to upgrade my system to amd 64 3200+. it's preaty cheap and it would be stupid to miss it, but... i do developing under windows and linux and MOST clients of mine are the users of 32-bit architecture. in the specs of the cpu i found misterious phrase "supports both simulteniously 32 and 64 arc's" huh? so, my dilema is - miss or not miss good chance for the upgrade. What are the issues will i face after upgrade to 64 (with regard to developing under win .NET studio)? What are the consiquences for my end-users? I mean only windows users, if they have win2k (just for example!) and 32-bit cpu (pIII), and they try to run a binary that was built on my winXPpro 64-bit cpu, will they have problems? please, share your opinion and experience, i really need it! thanx alex debug - is my life style
-
64 vs 32 bits - dilema!hi everybody! i've got an opportunity to upgrade my system to amd 64 3200+. it's preaty cheap and it would be stupid to miss it, but... i do developing under windows and linux and MOST clients of mine are the users of 32-bit architecture. in the specs of the cpu i found misterious phrase "supports both simulteniously 32 and 64 arc's" huh? so, my dilema is - miss or not miss good chance for the upgrade. What are the issues will i face after upgrade to 64 (with regard to developing under win .NET studio)? What are the consiquences for my end-users? I mean only windows users, if they have win2k (just for example!) and 32-bit cpu (pIII), and they try to run a binary that was built on my winXPpro 64-bit cpu, will they have problems? please, share your opinion and experience, i really need it! thanx alex debug - is my life style
-
How do i get full path to "My Documents" dir?Hello folks, just moved from unix environment into win32, not quite comfortable with the feeling that i'm a dumb yet again :( please, help! i need to get a full path to user's dir's like "My Documents". How can i do that? Just hardcoding the path "c:\\Documents and Settings\\USER_NAME_WHO_THE_HELL_KNOWS\\My Documents" is not good idea at all. And what about compatibility with different windowses (nt, xp, win2k or even win98)? any help is greatly appreciated :) alex, debug - is my life style