Quantcast
Viewing all articles
Browse latest Browse all 13

C++ , Kleine Hilfe wär nett .

    case WM_COMMAND:
        switch(wParam)
        {
        case 1:
        {
            wchar_t text[256];

            SendMessage(hwndEdit, WM_GETTEXT, 256, (LPARAM)text);
            MessageBox(hwnd, text, L"Edit -- Feld", MB_OK);

            return 0;
        }
        }

    case WM_DESTROY:
        PostQuitMessage(0);

Wie man unschwer sieht fehlt im WM_COMMAND Block, der break. Dadurch landet man sofort im WM_DESTROY Block.


Martin Richter -- MVP for VC++ [Germany] -- http://blog.m-ri.de

Viewing all articles
Browse latest Browse all 13