BM_CLICK (Constants)
Last changed: 212.44.26.236

.

LRESULT APIENTRY PlsVisibleProc(HWND hwnd,UINT msg,WPARAM wparam,LPARAM lparam)

{

    RECT r;
    switch (msg)
    {
        case BM_CLICK:
            MessageBox(hwnd, L"Hello bn",0,0);
            break;

/* case WM_COMMAND:

        switch(LOWORD(wparam))
        {
        case BM_CLICK:
            MessageBox(hwnd, L"Hello bn",0,0);
            break;
        }
        break;*/
    case WM_INITDIALOG:
        SetBitmap(btn_pls_visible, IDB_NOW_PLAYING);
        break;
    case WM_LBUTTONDOWN:
        SetBitmap(btn_pls_visible, IDB_NOW_PLAYING);
        //GetClientRect(main_frame, &r);
        //MoveWindow(hwnd, r.right-28, 6, 24, 24, TRUE);
        //SetBitmap(hwnd, IsPLaylistVisible?IDB_RESTORE_PRESSED:IDB_CLOSE_PRESSED);
        break;
    case WM_LBUTTONUP:
        //GetClientRect(main_frame, &r);
        ////MoveWindow(hwnd, r.right-29,5, 24, 24, TRUE);
        //SetBitmap(hwnd, IsPLaylistVisible?IDB_RESTORE_NORMAL:IDB_CLODE_NORMAL);

        GetClientRect(pls_frame, &r);
        /*if(IsPLaylistVisible)
        {
            for(int i=r.bottom-300;i<=r.bottom-50;i++)
            {
                MoveWindow(main_frame,0,i,r.right,r.bottom-50,TRUE);
            }
        }
        else
        {
            for(int i=r.bottom-50;i>=r.bottom-300;i--)
            {
                MoveWindow(main_frame,0,i,r.right,r.bottom-50,TRUE);
            }
            MoveWindow(main_frame, NULL, r.bottom-300,r.right,300,TRUE);
        }*/

        if(IsPLaylistVisible)
        {
            for(int i=0; i>-176;i--)
            {
                MoveWindow(pls_frame, i, 0, 200, r.bottom, TRUE);
            }
        }
        else
        {
            for(int i=-176; i<1;i++)
            {
                MoveWindow(pls_frame, i, 0, 200, r.bottom, TRUE);
            }
        }
        IsPLaylistVisible=!IsPLaylistVisible;
        SendMessage(parent, WM_SIZE, NULL, NULL);
        break;
    }
    return CallWindowProc(btn_pls_visible_proc, hwnd, msg, wparam, lparam);

}