Docking windows application to desktop

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dinudavis85
    New Member
    • Feb 2012
    • 2

    Docking windows application to desktop

    Hi,

    here goes the error msg: (The type or namespace name 'ShellApi' could not be found (are you missing a using directive or an assembly reference?)

    My Code is attached below. Error on ShellApi.RECT

    private void AppbarQueryPos( ref ShellApi.RECT appRect)
    {
    // prepare data structure of message
    ShellApi.APPBAR DATA msgData = new ShellApi.APPBAR DATA();
    msgData.cbSize = (UInt32)Marshal .SizeOf(msgData );
    msgData.hWnd = Handle;
    msgData.uEdge = (UInt32)m_Edge;
    msgData.rc = appRect;

    // query postion for the appbar
    ShellApi.SHAppB arMessage((UInt 32)AppBarMessag es.QueryPos, ref msgData);
    appRect = msgData.rc;
    }

    private void SizeAppBar()
    {
    if (!IsAppbarMode) return;
    ShellApi.RECT rt = new ShellApi.RECT() ;
    ......
    ..
    ..




    If you got a Code for docking in C#, Please share.

    I am a novice in C#, Hope you would help.

    Regards,

    Dinu Davis
  • PsychoCoder
    Recognized Expert Contributor
    • Jul 2010
    • 465

    #2
    Where do you have ShellApi declared?

    Comment

    • dinudavis85
      New Member
      • Feb 2012
      • 2

      #3
      Hi,

      Thanks for your concern and the hint guide me to solve the issue, and my project facing progress. :) :)

      Thanks for your time and effort to respond to my silly queries.

      I do appreciate your kindness and have a nice day!!

      Regards,

      Dinu Davis

      Comment

      Working...