Results 1 to 9 of 9

Thread: [RESOLVED] [2005] AppBar question. Anyone with WS_EX_TOOLWINDOW experience is welcomed!!

Threaded View

  1. #3

    Thread Starter
    Junior Member
    Join Date
    Oct 2006
    Location
    North Cackalaki
    Posts
    28

    Re: [2005] AppBar question. Anyone with WS_EX_TOOLWINDOW experience is welcomed!!

    Alright, well... I found the answer to my question out of trial and error. It came to be that I really did not need
    VB Code:
    1. cp.ExStyle = &H80& Or &H8& ' WS_EX_TOOLWINDOW | WS_EX_TOPMOST

    However, what I did have to do is add another Case entry into the code... here it is..

    VB Code:
    1. Protected Overrides Sub WndProc(ByRef m As System.Windows.Forms.Message)
    2.         If m.Msg = uCallBack Then
    3.             Select Case IntPtr.Size 'm.WParam.ToInt32()
    4.                 Case CInt(ABNotify.ABN_POSCHANGED)
    5.                     ABSetPos()
    6.                     'The Case Else did the trick... this made the bar mount and stay in position.
    7.                 Case Else
    8.                     ABSetPos()
    9.             End Select
    10.         End If
    11.  
    12.         MyBase.WndProc(m)
    13.     End Sub 'WndProc

    As for what I was actually doing... well here.. check it out. If anyone wants to see a copy of the program ill be happy to post all of the source. This one I can say was truely built by myself using a translator from C# to VB.net in an article pulled out of the MSDN library.

    What the program actually does, it makes an AppBar very similar to the Windows Taskbar. It mounts on top, left right, and on the bottom of the screen. The bar provides a way to display the current classification of a Government computer... Unclassified, Secret, and Top Secret. The bar is able to have transparency, and it is always on top. If a window somehow manages to get behind the bar, you can double click the bar and slide the window out of the way. The best thing of all is that it pushes the icons down, up, left, or right... However the bar is mounted.. the icons will move out of the way. It truely is a first step to make something very usable and customizable.
    Attached Images Attached Images  
    Phillip Dieppa
    VB.NET Newbie 2.0


    AppBar Example

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width