Results 1 to 12 of 12

Thread: Outlook Toolbar, XP Control Styles, API Heaven

  1. #1

    Thread Starter
    Addicted Member morphman2000's Avatar
    Join Date
    Oct 2000
    Location
    Europe, The Netherlands
    Posts
    254
    You should be programming in C++ API. Then you can do the same (and more) without the declaring of your api's.

  2. #2
    Hyperactive Member deane034's Avatar
    Join Date
    May 2001
    Location
    Sri Lanka
    Posts
    485
    Controls that look like XP controls ran in XP
    search for meanifest u'll fin the ans
    me.life = VB

  3. #3
    Addicted Member
    Join Date
    Oct 2000
    Location
    Orlando, FL
    Posts
    253
    I dont know C syntax much yet. I am slowwwwwly learning it tho

    The declares are actually needed in C++, they are just included in header files and stuff. I use a module for header files. It works well.

    Does the code run any faster in C++ then VB, or is the syntax the only difference?

    I do know that there are some things in C++ that are better for example:

    lngCounter = lngCounter + 1 is fatser in C++ as: lngCounter++

    For now, all my programs are written in API code. I never use forms or controls from VB. I use api due to its speen, good resource use and customization.

    I started using API when I learned about the ListView from VB. There were several things I could not do to the VB ListView and later on found that the Collection used for the LV items is slowwwww! The LVM_INSERTITEM along with pre allocation the number of items in the listview is FAST!

    I think I might be pushing the VB limit tho.
    Always looking for a better and faster way!

  4. #4

    Thread Starter
    Addicted Member morphman2000's Avatar
    Join Date
    Oct 2000
    Location
    Europe, The Netherlands
    Posts
    254
    Does the code run any faster in C++ then VB, or is the syntax the only difference?
    Well, it might not be much faster, maybe a bit, but with C++ you are able to subclass the events without using any subclassing routines. Much more powerfull the you can do with VB.
    VB is a very nice language, but if you are only using API's to create the programm, I would recommend learn C++!

  5. #5
    Addicted Member
    Join Date
    Oct 2000
    Location
    Orlando, FL
    Posts
    253
    Ya, your probably right. It was quite a difference from VB to API code. scary at first and FRUSTRATING! Also, VB crashes alot now that I use API's. Maybe VB wasnt ever meant to be programmed like this.
    Always looking for a better and faster way!

  6. #6

    Thread Starter
    Addicted Member morphman2000's Avatar
    Join Date
    Oct 2000
    Location
    Europe, The Netherlands
    Posts
    254
    Originally posted by miben
    Maybe VB wasnt ever meant to be programmed like this.
    That's for sure.

  7. #7
    Addicted Member
    Join Date
    Oct 2000
    Location
    Orlando, FL
    Posts
    253
    1 question for ya:

    The Rebar control. Everytime the form is painted by resizing it or if i call MoveWindow, The entire Rebar is repainted. How can I keep this from hapening? I managed to do it ok with the other controls, but the rebar control keeps repainting.
    Always looking for a better and faster way!

  8. #8

    Thread Starter
    Addicted Member morphman2000's Avatar
    Join Date
    Oct 2000
    Location
    Europe, The Netherlands
    Posts
    254
    with:

    VB Code:
    1. Declare Function LockWindowUpdate Lib "user32" Alias "LockWindowUpdate" (ByVal hwndLock As Long) As Long

    Locks the screen or form of your chosen handle. After resizing (so when you done (mousup event), you do:

    VB Code:
    1. LockWindowUpdate 0

    Good luck!

  9. #9
    Addicted Member
    Join Date
    Oct 2000
    Location
    Orlando, FL
    Posts
    253
    naw, i dont think so. It will still refresh when i unlock it. It must have something to do with window clipping.

    WS_CLIPCHILDREN Or WS_CLIPSIBLINGS styles for the main window or child windows, but i am not quite sure yet.
    Always looking for a better and faster way!

  10. #10
    Originally posted by deane034
    search for meanifest u'll fin the ans
    http://liquid2k.com/filburt1/vbtips/...m#manifestfile

  11. #11
    New Member
    Join Date
    Aug 2001
    Location
    Stockholm, Sweden
    Posts
    7
    Thank you for the code, I have been looking for something like this for a long time. I have played around with for a couple of hours, but I still have some questions:

    * Where would I put the Click event for, for example, the buttons in the toolbars? And how do you add items to the combobox?

    * If I have an exisiting window, and would like to add a toolbar to it, how do I do? I understand that some changes must be done before I put the code in a form's Load event..

    Any help is appreciated.

    Henrik

  12. #12
    Addicted Member
    Join Date
    Aug 2001
    Location
    UK
    Posts
    204

    YIIPPIEEE

    OMG THANK YOU SOOOOO MUCH I HAVE BEEN LOOKING FOR MONTHS TRYING TO FIND HOW TO DO THIS!!

    MAN I COULD KISS YOU MUWAH


    YOU DESERVE A REWARD!!

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