Im developing a application in ATL..My problem is when I minimize the application,it should disappear from Taskbar and tray icon should be created..
No i dunno how to dissappear it from Task bar..So any idea....or ny links..
Too much of good is bad,mix some evil in it
UIUpdateMenuBarElement() doesn't support radio-checking menu items, although it is possible to add the code to do it. I did it for my own work a few weeks ago, when I get home I'll see if I can find the code (I didn't end up using it after all, so I might not have kept it)
--Mike-- THERE IS NO THERE IS NO BUT THERE IS
MAGIC PIXIE DUST BUSINESS GENIE CODE PROJECT
Once you provide the MemFuncAdder template, you can call accumulate on multiple member functions without needing to write additional code. If you need a different operation other than addition, you could provide other templated functor classes.
Another way to look at this is to turn it on its head and say use a virtual list box which accessed items directly in the STL vector etc.
There are many advantages to this approach. eg. No parallel copies of the data to maintain and keep in sync, faster population of the control as it doesn't need to copy the data, more efficient memory use etc.
I've written a tree control that works like this. It uses an abstract container class to request the items it needs to display, and has absolutely no knowledge of where the data elements live or what they are. You can see this in the ClassView, Ascii Chart and Skeleton trees in ED.
NEw custom property pages should be added to the device manager's property sheet using WTL. I used CPropertyPageImpl<> base class for this. Property page is not being displayed. IF new tab in the devicemanager prperties dialog box is clicked application is crashing.
I am working on CStatic control of VC++. I want to load Bitmap on the CStatic control with Transparent Background. For that I have created the Object of CBitmap. But It seems that CBitmap is not having transparent property. Can anybody show me the way, how to make CBitmap object transparent? I am creating Bitmap with CretateBitmap() method and after that I am Loading Bitmap to the CBitmap Object with LoadBitmap() method. These are the basic steps required to load Bitmap to the newly created Bitmap, but I don't know how to make it Transparent? Is there anybody who knows the trick? Please, show me the way...
I was wondering if ther is a way to use the cin.getline() function when you use string objects. With the code snipet below I get the following error:
error C2664: 'class std::basic_istream<char,struct std::char_traits<char> > &__thiscall std::basic_istream<char,struct std::char_traits<char> >::getline(char *,int,char)' : cann
ot convert parameter 1from'class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >' to 'char *'
No user-defined-conversion operator available that can perform this conversion, or the operator cannot be called
Error executing cl.exe.
hwproject.exe - 1 error(s), 0 warning(s)
I always encounter this problem and I don't know what to do to solve this. Is there a better way to do this with string objects? Can you tell me what I did wrong with the code below? Any answer is more than welcome.