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

  • SEARCH
  • Home
  • 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 188541
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T16:05:16+00:00 2026-05-11T16:05:16+00:00

I have to fix some problems and enchance form designer written long ago for

  • 0

I have to fix some problems and enchance form designer written long ago for a database project.
In Design Panel class code I encountered these lines

private void DesignPanel_MouseDown(object sender, MouseEventArgs e)
{
    if (e.Button == MouseButtons.Left)
    {
        (sender as Control).Capture = false;
        switch (FMousePosition)
        {
        case MousePosition.mpNone: 
            SendMessage((sender as Control).Handle, WM_SYSCOMMAND, 0xF009, 0);
            break;// Move
        case MousePosition.mpRightBottom: 
            SendMessage((sender as Control).Handle, WM_SYSCOMMAND, 0xF008, 0);
            break;//RB
        case MousePosition.mpLeftBottom: 
            SendMessage((sender as Control).Handle, WM_SYSCOMMAND, 0xF007, 0); 
            // ... here are similar cases ...
        case MousePosition.mpLeft:
            SendMessage((sender as Control).Handle, WM_SYSCOMMAND, 0xF001, 0);
            break;//L  
        }
    }
}

FMousePosition indicates whether mouse was over any edge of selected control.

What confusing me is these windows messages: it seems there is no documentation on WM_SYSCOMMAND with parameters 0xF001-0xF009 (maybe it starts some kind of ‘drag/resize sequence’). Any ideas?

If my suggestion is right, then how can I cancel these sequences?

  • 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-11T16:05:17+00:00Added an answer on May 11, 2026 at 4:05 pm

    They are undocumented parameters. After searching I managed to find this list.

    • 0xF000 (SC_SIZE, Center cursor on the form)
    • 0xF001 (SC_SZLEFT, Resize from left)
    • 0xF002 (SC_SZRIGHT, Resize from right)
    • 0xF003 (SC_SZTOP, Resize from top)
    • 0xF004 (SC_SZTOPLEFT, Lock the bottom right corner of the form, the top left corner move for resize)
    • 0xF005 (SC_SZTOPRIGHT, Same from bottom left corner)
    • 0xF006 (SC_SZBOTTOM, Lock top right and left border, resize bottom)
    • 0xF007 (SC_SZBOTTOMLEFT, Lock top and right border, resize other border)
    • 0xF008 (SC_SZBOTTOMRIGHT, Lock left and top border and resize other)
    • 0xF009 (SC_SIZE|0x9, Drag from anywhere)
    • 0xF00F (SC_SEPARATOR)
    • 0xF010 (SC_MOVE, Put cursor centered at the upper order)
    • 0xF012 (SC_DRAGMOVE, move by dragging)
    • 0xF020 (SC_MINIMIZE, Auto-Minimize Form)
    • 0xF030 (SC_MAXIMIZE, Auto-Maximize Form)
    • 0xF040 (SC_NEXTWINDOW, Stop! You don’t want that, it will lock all mouse click and make you reboot)
    • 0xF148 (SC_SCREENSAVE|0x8, Activate ScreenSaver)
    • 0xF13E (SC_TASKLIST|0xE, Activate StartButton)

    Reference: http://www.delphi3000.com/articles/article_1054.asp#Comments

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

Sidebar

Related Questions

Thanks to the stackoverflow community, I could fix some problems in my flash project
I really need some help with this as I have been trying to fix
I have had some problems earlier which caused my program to crash in all
I tried the new Customizing API for iOS 5 and have some problems I
I have some problems displaying data in JTable. My app is using a JTable
I have some problems with the function to refresh the main page when a
After having some problems with these two linker errors on SO , I have
I am not an ActionScript expert, but I unfortunately have to fix some broken
Hi, I have some problems with an implementations off custom submit buttons. pleas take
I´m trying to fix some problems adding a column to comments table and performing

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.