ich hoffe, dass das hier dich weiterbringt... ich bin recht ratlos
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
LRESULT CALLBACK WndProc( HWND hWnd, // Handle For This Window
UINT uMsg, // Message For This Window
WPARAM wParam, // Additional Message Information
LPARAM lParam) // Additional Message Information
{
HMENU hMenu;
POINT point;
switch (uMsg) // Check For Windows Messages
{
case WM_CREATE :
//PlaySound(("Data/REF/welcome1.wav"), NULL, SND_FILENAME|SND_ASYNC);
return 0 ;
case WM_COMMAND:
hMenu=GetMenu(hWnd);
switch (LOWORD (wParam))
{
case ID_SETUPS_SETUP1:
//hier dann Anzeige der entsprechenden Anodnung der Spheres!
DialogBox(hInstance, MAKEINTRESOURCE(IDD_DLGSETUP1), hWnd, reinterpret_cast<DLGPROC>(DlgSetup1Proc));
break;
|
♦
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
LRESULT CALLBACK DlgSetup1Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{
switch(uMsg)
{
case WM_INITDIALOG:
char versuch[100];
sprintf(versuch, "%d", EditBoxSup1_1_Val);
int len;
len = SendMessage(hEditBoxSup1_1, WM_GETTEXTLENGTH, 0, 0);
SendMessage(hEditBoxSup1_1, EM_SETSEL, len, len);
SendMessage(hEditBoxSup1_1, EM_REPLACESEL, FALSE, LPARAM)versuch);
return TRUE;
case WM_COMMAND:
switch(LOWORD (wParam))
{
case IDC_EDIT1:
char Text1[256];
hEditBoxSup1_1 = (HWND)lParam;
GetWindowText (hEditBoxSup1_1, Text1, 256);
EditBoxSup1_1_Val = atoi(Text1);
return (0);
|
vielen dank, dass du es dir anschaust... greetz
Also wenn ich mit SetWindowText() mir boxfill in die EditBox schreiben lasse kommt "ÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌÌŽ²8ãÔ;"
bei raus... ?! irgenwas stimmt da hinten und vorne nicht...