RadioControl abfrage



  • Hi,

    ich hba da ein Problem mit den RadioButtons, ich hab schon hier im Forum gesucht find aber kein Hilfe bzw. lösungsweg.. also

    switch(message)
        {
        case WM_INITDIALOG:
    
            return TRUE;
    
         case WM_PAINT:
            {
                HDC hdc;
                PAINTSTRUCT ps;
    
                hdc = BeginPaint(hWindow, &ps);
                {
    
                    TextOut(hdc, 200, 50, asctime(SysTime), 20);
    
                    TextOut(hdc, 150, 150, Day.str(), Day.pcount());     //Output Day
    
                    TextOut(hdc, 190, 150, Month.str(), Month.pcount()); // Output Month
    
                    TextOut(hdc, 250, 150, Year.str(), Year.pcount());   //Output Year
    
                }EndPaint(hWindow, &ps);
    
            }  
        case WM_COMMAND:
            {
    
                switch(LOWORD(wParam))
                {
    
                case IDC_INTER6:
                    {
    
                        break;                    
                    }
                case IDC_INTER12:
                    {
    
                        break;
                    }
                case IDC_INTER18:
                    {
    
                        break;
                    }
                case IDC_INTER24:
                    {
    
                        break;
                    }
                case IDC_OK:
                    {
                    //Beendet Service Fenster
                    PostQuitMessage(0);
                    DestroyWindow(hWindow);
                    break;
                    }
                case IDC_REFRESH:
                    {
                        //Erneuert Zeitangabe, falls System Zeit falsch angegebn
                        InvalidateRect(hWindow, NULL, TRUE);
                        break;
                    }
                case IDC_SET:
                    {
                        //ADD CODE 4 Registry Set's
                        HKEY hKey;
                        //RegCreateKeyEx(HKEY_LOCAL_MACHINE, "Software\\testapp", 0,0,REG_OPTION_NON_VOLATILE,
                        //KEY_ALL_ACCESS,NULL, &hKey, 0);
    
                        //RegSetValueEx(hKey, "test",0,REG_SZ, "2",5);
                        //RegCloseKey(hKey);
                        break;
                    }
    
                }//end switch
            }//end case WM_COMMAND
        break;
        default: return FALSE;
        }
        return TRUE;
    }
    

    ich will das wenn ich auf nen radiobutton klick sich die variable Get.Month um einen wert erhöht und dann wieder ausgegeben wird, aber ich raff die abfrage von den radiobuttons nicht mit SendMessage(); thx für ne kleine hilfe



  • IsDlgButtonChecked 😕


Anmelden zum Antworten