Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

BM_CLICK (Constants)
 
.

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);

}

 

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it!

 
Access PInvoke.net directly from VS:
Terms of Use
Find References
Show Printable Version
Revisions