This has never occurred to me before, I have been tweaking win32 API for awhile, but I really never paid much attention with the dimensions as saved in resource files for dialog boxes. Interestingly, the units stored in rc file are not really in pixel but rather in dialog unit. :( My understanding is that this will make the dialog independent of the font size. If user/developer changes the font size, the dialog box will adjust accordingly. Seems like a neat idea but I was dumbfounded at first sight.
It makes my life harder though as I am trying to cross-reference runtime dialog boxes against design time. I was planning to cross ref them using the dimensions but it turns out to be not a good option.
The quest is on...........
Related links:
http://msdn.microsoft.com/en-us/library/aa380902(VS.85).aspx
~rs~
Thursday, July 02, 2009
Wednesday, July 01, 2009
Working with memory leaks
Tuesday, June 30, 2009
Sunday, June 21, 2009
Visual Studio shortcuts
The following are my frequently used keyboard shortcuts in Visual Studio.
Ctrl+}
- Match braces back and forth
Ctrl+-
- Go back to the last location
Ctrl+l
- Delete line
Ctrl+g
- Go to line number
Shift+Alt+Enter
- Maximize Code Editor
Ctrl+}
- Match braces back and forth
Ctrl+-
- Go back to the last location
Ctrl+l
- Delete line
Ctrl+g
- Go to line number
Shift+Alt+Enter
- Maximize Code Editor
Sunday, June 14, 2009
Minimal Debian Lenny wiht Fluxbox on VirtualBox
Work in progress!!!!!
From the fluxbox session, open a terminal. Do the following to install VirtualBox integration:
We should have a nicely integrated. Note that this configuration will start in console mode (init 3). You should run startx to go to the X session.
Now try to change to one of the default styles, this case "flux".
#: aptitude install x-window-system-core #: aptitude install fluxbox #: exit (to user) $: startx
From the fluxbox session, open a terminal. Do the following to install VirtualBox integration:
$: su #: aptitude install build-essential #: aptitude install linux-headers-`uname -r #: mount /media/cdrom #: cd /media/cdrom #: sh VBoxLinuxAdditions-x86.run #: reboot
We should have a nicely integrated. Note that this configuration will start in console mode (init 3). You should run startx to go to the X session.
Now try to change to one of the default styles, this case "flux".
menu | Styles | flux
Saturday, June 13, 2009
VC++ 2008 link crash
I am getting the following crash in VC++2008:
It turns out that this a bug of a VC++ 2008 linker, see hotfix 948127 from Microsoft.
~TS
Linking... Embedding manifest... Microsoft (R) Windows (R) Resource Compiler Version 6.0.5724.0 Copyright (C) Microsoft Corporation. All rights reserved. LINK : fatal error LNK1000: Internal error during IncrBuildImage
It turns out that this a bug of a VC++ 2008 linker, see hotfix 948127 from Microsoft.
~TS
Friday, June 12, 2009
JEdit related information
jEdit is a mature programmer's text editor. It is not my favorite but it is interesting.
Key configurations I do in JEdit:
- Remove the .(dot) in the text area, do Utilities | Global Options... | Text Area and unset End of line markers.
Key configurations I do in JEdit:
- Remove the .(dot) in the text area, do Utilities | Global Options... | Text Area and unset End of line markers.
Subscribe to:
Posts (Atom)