lundi 30 avril 2018

WM_CREATE GRAPHICS DEPENDECIES Gaps in shape drawing algoritms

Ricently i have added to Planet Chili framework, menu with popup tabs And also i have wrote simple function for drawing thin line circle and line and combining both is causing visble gaps in shapes.

[1]http://forum.planetchili.net/download/file.php?id=2733 "frame"

when I will remove WM_CREATE and WM_COMMAND section averything goes back to normal.

case WM_CREATE:
{
    HMENU hMenu, hSubMenu;

    hMenu = CreateMenu();

    hSubMenu = CreatePopupMenu();
    AppendMenu(hSubMenu, MF_STRING, ID_FILE_EXIT, L"E&xit");
    AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, L"&File");

    hSubMenu = CreatePopupMenu();
    AppendMenu(hSubMenu, MF_STRING, ID_STUFF_GO, L"&Go");
    AppendMenu(hMenu, MF_STRING | MF_POPUP, (UINT)hSubMenu, L"&Stuff");

    SetMenu(hWnd, hMenu);

    break;
}
case WM_COMMAND:
{
    switch (LOWORD(wParam))
    {
    case ID_FILE_EXIT:
        PostMessage(hWnd, WM_CLOSE, 0, 0);
        break;
    case ID_STUFF_GO:
        ShowMessageBox(L"You clicked Go!", L"Woo!");

        break;
    }

    break;

}

this is my repo https://github.com/oBornToCreateo/chili_framework

Aucun commentaire:

Enregistrer un commentaire