When you have a dialog based app, and you don’t want it to close, what most people do is to override the handler for the IDCANCEL button and comment out the call to CDialog::OnCancel() which calls CDialog::EndDialog(…) which then calls the EndDialog API call. Now this is all fine except that the dialog won’t close [...]
Entries from June 2004
Dialog windows and WM_CLOSE
June 28th, 2004 · 28 Comments
Tags: Win32/MFC
Goran’s gone – but will never be forgotten
June 27th, 2004 · 4 Comments
I still remember fighting to hold back the tears when Goran lost the 5th set to Agassi in the ‘92 Wimbledon; also remember the straight sets loss to Sampras in ‘94 and then that 5-setter in ‘98 again to Sampras. It was really awful for Goran fans, the man who possessed the most destructive and [...]
Tags: General
Syntax colorizer fun with C++/CLI
June 24th, 2004 · 7 Comments
I was reading Brian Johnson’s Weblog and there was a comment by Ramon de Klein where he expressed unhappiness with the addition of so many new keywords in C++/CLI. I replied to Ramon saying that there were essentially just three new keywords that might clash with existing code – nullptr, gcnew and generic. And just [...]
My new CP article – Function overriding in C++/CLI
June 23rd, 2004 · No Comments
I’ve finally got around to writing another C++/CLI article for CodeProject. Function overriding in C++/CLI The article covers the new function overriding features available in C++/CLI like explicit overriding, renamed overriding and multiple overriding. It also shows you how to use the sealed and abstract function-modifiers.
PreTranslateMessage equivalent in a non-MFC Win32 app
June 21st, 2004 · 10 Comments
Recently this question came up in the Microsoft MFC Newsgroup, where someone was porting an MFC app to pure-API, and wanted to know what the PreTranslateMessage equivalent was for the pure-API application. Essentially all you need to do is to put your code just before the TranslateMessage call, as shown in the code snippet below [...]
Tags: Win32/MFC
Is gmail just a fashion statement?
June 19th, 2004 · 27 Comments
I admit to having a gmail account of my own, just like most of you guys do. And I also admit to experiencing a substantially pleasurable mood when I did get my own gmail account. But now that I have it, I don’t really use it. At my bandwidth (or rather the lack of bandwidth), [...]
Tags: General
Trivandrum – a nocturnal beauty
June 17th, 2004 · 13 Comments
It was a little past 9:30 PM, and I was driving back home from the restaurant from where I had my supper, which incidentally consisted of curd-rice, two cups of coffee and a glass of pomegranate juice – yeah, yeah I know it’s a weird sort of supper to have. It was drizzling heavily enough [...]
Tags: General
Managed array syntax in C++/CLI
June 17th, 2004 · 1 Comment
C++/CLI supports managed arrays using a far more intuitive syntax than which existed in the older syntax. Here are some of the basic features of managed arrays in C++/CLI :- Syntax resembles that of C++ templates System::Array is abstract base type for all managed arrays Allocated on the CLR heap (means they get GC’d) Rank [...]
Tags: C++/CLI
HTML mails – what’s all the fuss about?
June 9th, 2004 · 6 Comments
Very often, you hear people barking at someone because the poor fellow happened to send an HTML-mail to a mailing list. Now I personally do not understand this at all. Just about every email client out there, supports viewing HTML mails, and so do all the web based mail sites. And HTML mails are specially [...]
Tags: General
My new car
June 6th, 2004 · 23 Comments
I got my new car yesterday – went to Cochin, a city 220 KM away from Trivandrum, took it from the showroom and drove it all the way back to Trivandrum. It’s a Toyota Corolla H2 model – Black Mica body color. I had to pay 88% more than what the same car costs in [...]
Tags: General
Got myself a new mobile phone
June 1st, 2004 · 12 Comments
After more than 2 years with my Ericsson A3618, I bought a new mobile phone – a Nokia 6100 model – color display with polyphonic ringtones – at a reasonable price of Rs 9,900 (approx US$ 220). I guess that’s still at least 25% to 35% more expensive than its price in the US or [...]
Tags: General