Beruflich Dokumente
Kultur Dokumente
y bitmap with English text will still be in English (though given time, those wo
uld be easy to address as well).
One large area that was not addressed was the help file. Translating the help f
ile would require tremendous effort from the translators. These are people who
volunteer to translate WndTabs into their native language for nothing more than
a thank you (thanks guys!), and I didn't want to drown them in work. Code chang
es would also have to be put in place, as I'd have to upgrade my HTML help subsy
stem to support multiple help files. I decided that if the translation packs ar
e a run-off success, that I'd invest time in localized help file in the next rel
ease.
Internet Keyboards
One nice new feature in v3.10 is support for Internet keyboards. These keyboard
s feature extra keys such as back, forward, stop etc. Diligent user Frank Fesev
ur suggested the feature and was kind enough to send me an MSDN link. To sum up
, these keyboard work through a new message call WM_APPCOMMAND. An enhanced inp
ut device will send this message, with the LPARAM value holding information such
which special key was pressed and from which device the message originated (see
the note below). Here is some sample code for handling this message:
Hide Shrink
Copy Code
BEGIN_MESSAGE_MAP(CMainFrame, CFrameWnd)
//{{AFX_MSG_MAP(CMainFrame)
...
//}}AFX_MSG_MAP
ON_MESSAGE(WM_APPCOMMAND, OnAppCommand)
END_MESSAGE_MAP()
...
LRESULT CMainFrame::OnAppCommand(WPARAM wParam, LPARAM lParam)
{
// see which special button was pressed
const int cmd = GET_APPCOMMAND_LPARAM(lParam);
switch (cmd)
{
case APPCOMMAND_BROWSER_BACKWARD:
{
// do something
return TRUE; // return TRUE to indicate that we processed the butto
n
}
case APPCOMMAND_BROWSER_FORWARD:
// ....
case APPCOMMAND_BROWSER_STOP:
// ....
}
// This was a button we don't care about - return FALSE to indicate
// that we didn't process the command
return FALSE;
}
One final note - only talking about keyboards is half the truth. Any device can
issue WM_APPCOMMAND messages. For example, I'm sure that the Microsoft Intelli
mouse is one of them.