Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6172305
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T23:22:10+00:00 2026-05-23T23:22:10+00:00

I was trying to change the order of quick launch button on XP using

  • 0

I was trying to change the order of quick launch button on XP using C++, and my code looks like this:

HWND hDesktop = GetDesktopWindow();
HWND hTray    = FindWindowEx( hDesktop , 0, _T("Shell_TrayWnd")   , NULL );
HWND hReBar   = FindWindowEx( hTray    , 0, _T("ReBarWindow32")   , NULL );
HWND hToolbar = FindWindowEx( hReBar    , 0, _T("ToolbarWindow32") , NULL );
int Count = SendMessage(hToolbar, TB_BUTTONCOUNT, 0, 0);
SendMessage(hToolbar, TB_MOVEBUTTON, Count-1, 0);

IF there are less than 3 buttons(the defalut limits of number of the buttons that are visible in the quick launch bar) in the quick launch toolbar, the code works just fine, but when there are more than 3 buttons, the order will change for a while, and remains the same after you clicking the little arrow button at the right of the 3 showing quick launch buttons.
Can anyone please tell me why this happen? and how I can fix it to make work for more than 3 buttons?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T23:22:11+00:00Added an answer on May 23, 2026 at 11:22 pm

    There is no officially supported API for doing this because the Quick Launch area is owned by the user and applications are expected not to change the order behind the user’s back.

    The user has a perfectly reasonable mechanism to re-order the buttons and you should leave it to them to do so, should they so wish.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to change a site's home directory using powershell. This is what I
I'm trying to change this timestamp 2010-08-02 00:28:20 to month/day/year - 08/02/10 ..in the
I was trying to change a convention so that my IDs follow this simple
I'm trying to do something that is fairly simple, but my code looks terrible
Am trying to change my web application using AD for authentication. My application uses
I'm trying to create a simple chat application for iOS. It currently looks like
I'm trying to change the z-order for some docked panel in the VS2010 designer.
I'm trying to figure out what SWIG Interface file change is needed in order
i'm trying to change the toolbars order. before netbeans 7 the order was set
I'm trying to create a draggable list to change the order some pictures are

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.