| |
|
|
Christian Eichler | I have now subesquent code: CompileMarkSeparation#define STRICT
#include <windows.h>
LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
const char Ueberschrift[] = "BlaBlaBla";
HINSTANCE hInst;
int WINAPI WinMain(HINSTANCE hInstance,HINSTANCE hPrevInstance,PSTR szCmdLine,int iCmdShow)
{
hInst = hInstance;
MSG msg;
HWND WHandle;
WNDCLASS WClass = {CS_VREDRAW | CS_HREDRAW,WndProc,0,0,hInstance,LoadIcon(NULL,IDI_APPLICATION),LoadCursor(NULL,IDC_ARROW),(HBRUSH) COLOR_BACKGROUND,"","WClass"};
RegisterClass(&WClass);
WHandle = CreateWindow("WClass",Ueberschrift,WS_SYSMENU,CW_USEDEFAULT,CW_USEDEFAULT,640,480,NULL,NULL,hInstance,NULL);
ShowWindow(WHandle,iCmdShow);
UpdateWindow(WHandle);
while (GetMessage(&msg,NULL,0,0))
{
TranslateMessage(&msg);
DispatchMessage(&msg);
}
return msg.wParam;
}
LRESULT CALLBACK WndProc(HWND WHandle, UINT message, WPARAM wParam, LPARAM lParam)
{
char Taste[50] = {0};
switch (message)
{
case WM_KEYDOWN:
itoa(lParam,Taste,50);
MessageBox(0,Taste,"",0);
break;
case WM_DESTROY:
{
PostQuitMessage(0);
return 0;
}
}
return DefWindowProc(WHandle, message, wParam, lParam< lass=s2>);
}
How your see, changes I to Time lParam in a String circa, circa auszulesen, which Button straight pressed watts. though shining me the Yes not The straight optimale Solution. really would like I The Bits particular read, though succeed me not.
I Have The scheduler which bit what means, but How les I the from ?
BitsMeaning 16-23Scan code. 24Extended-key flag. Distinguishes some keys on on enhanced keyboard. 25"Dont care" bit. The application calling this function sets this bit to indicate that the function should hardship distinguish between left and right CTRL and SHIFT keys, for example.
I bedank I already time in the ahead.
Regards Christian |
|
|
| Debian Lenny, Intel Celeron 2,8 Ghz, 768 MB Ram && Win XP Pro, Intel C2D 1,66Ghz, 2 GB Ram ... PROFAN² 6.6 | 11/10/08 ▲ |
|
|
|
|
Jac de Lad | Wrong Forum!!! |
|
|
| Profan² 2.6 bis XProfan 11.1+XPSE+XPIA+XPRR (und irgendwann XIDE) Core2Duo E8500/T2250, 8192/1024 MB, Radeon HD4850/Radeon XPress 1250, Vista64/XP | 11/10/08 ▲ |
|
|
|
|
Christian Eichler | Yes, the comes me on a gewisse Nature and point too strain. Vll. bekomm I Yes still ne (sinnvolle) response ? |
|
|
| Debian Lenny, Intel Celeron 2,8 Ghz, 768 MB Ram && Win XP Pro, Intel C2D 1,66Ghz, 2 GB Ram ... PROFAN² 6.6 | 11/10/08 ▲ |
|
|
|
|
| Nimm hi- and loword, with itoa as Base 50 power me against something care. Bits schubsen with << or. >>.
Topic moved. |
|
|
| |
|
|
|
Christian Eichler | I said already, that itoa here even not well is
I Have the trouble even on andre Nature and point resolved. I überprüf just wParam, lParam I had eh only for a Button used, and the has neither so functions, as the had do solln.
Why I do not former on wParam come be, and always so fixes on lParam was ...
Well, nevertheless thanks you all
Regards Christian |
|
|
| Debian Lenny, Intel Celeron 2,8 Ghz, 768 MB Ram && Win XP Pro, Intel C2D 1,66Ghz, 2 GB Ram ... PROFAN² 6.6 | 11/10/08 ▲ |
|
|
|
|
Sebastian König | Hi,
unfortunately be I straight on the plunge to Beijing and I not even Time, whom Posting complete To reading. I trouble me therefore, if I back be (means next week).
MfG
Sebastian
P.s.: goes it at all circa Profan2Cpp? |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 11/11/08 ▲ |
|
|
|
|
| @Sebastian: No only indirect, "Problem" is resolved. |
|
|
| |
|
|
|
Sebastian König | iF
@Sebastian: No only indirect, "Problem" is resolved. OK, very well. |
|
|
| Windows XP, XProfan/Profan² 4.5 bis 11 Profan2Cpp-Homepage: [...] Alte Profan²-Seite: [...] | 11/17/08 ▲ |
|
|
|