Using PrintWindow to capture screen or to take snapshot of a window!

PrintWindow is a cool function which helps us in printing a windows contents to a DC. Normal usage will be that we pass a printer DC, but here we pass a custom DC with a bitmap selected into this DC. Internally PrintWindow uses WM_PRINT and WM_PRINTCLIENT(This is my assumption). Here is a simple function which […]
Continue reading…

 

Fourth day of MVP Summit!

Breakfast this time was good, better than last two days! Keynote sessions by Ray Ozzie and Steve Ballmer about to begin. Nice interactive session with all MVPs. With a few MVPs asking questions about future plans of Microsoft. Pretty cool guy, I’ve heard people talking nicely about him. A snap of Ray! So here comes […]
Continue reading…

 

Third day at the MVP summit!

We are at Microsoft campus to for our third day MVP sessions. Guys are still busy taking pictures, including me, hehe. If ya see those pictures you will think I’m working in Microsoft (Hmm someday). So what’s new, well nothing, it’s all about Microsoft products again. Good thing is that they are listening to what […]
Continue reading…

 

Second day at the MVP Summit!

First day went well, so this is the second day, all our sessions scheduled for today and tomorrow will held in Microsoft Campus! Cool atmosphere! Can see MVPs walking around busy taking pictures around the concrete slab which has Microsoft written on it. Guess what we’ll be meeting with the Visual C++ team today! Since […]
Continue reading…

 

First day of the MVP summit!

Pretty cool atmosphere! Well I was a bit worried about the public transportation system in Seattle, very different to what we have in India. Rodeway Inn hotel manager was kind enough to drop me back at the airport from where I was able to catch a bus to downtown seattle! There are two busses that […]
Continue reading…

 

First day at Seattle for the MVP Summit!

Pretty tired! Arrived here on the 13th morning, had a local hotel reservation since I didn’t have reservation at the Sheraton. Hell tired! Dozed off after refreshing myself! Tacoma international airport is quite big, and well organized (First impression). Friendly people around! I do plan to visit the Boeing factory/museum if time permits! Walked around […]
Continue reading…

 

Message only windows!

Heard of message only windows? These windows are not visible, non enumerable. Here is something from MSDN on these windows! “A message-only window enables you to send and receive messages. It is not visible, has no Z order, cannot be enumerated, and does not receive broadcast messages. The window simply dispatches messages. To create a […]
Continue reading…

 

Making many drawing calls using just one API call!

Use Polyxxxx set of functions. Some of the functions that I know are listed below PolyPolyline PolyTextOut PolylineTo PolyDraw PolyBezier PolyBezierTo From MSDN: These functions exploit the fact that many drawing calls use identical attributes, and so multiple items can be drawn in a single call once the brushes, pens, colors, and fonts have been […]
Continue reading…

 

Dumping CObject based array!

Ever felt the need to dump an MFC array content to a debugger, it’s just so easy! Use AfxDump or afxDump! Here is an e.g. [sourcecode language=’cpp’]CArray IntArray; AfxDump( &IntArray ); // Or #ifdef _DEBUG afxDump
Continue reading…

 

VC feature pack final release!

Finally good news for MFC developers as Microsoft has made Visual C++ 2008 Libraries Extension Feature Pack Final Release! Available for download here. Informative video by Stephen T. Lavavej on TR1 release is here. I’m back in business, hip hip hurray! 😀 Some classes in TR1 that I am working on… shared_ptr – The most […]
Continue reading…