none
How to change background color of MainWindow ? RRS feed

  • Question

  • Hi

    ACC.OPTIONS.GENERAL.OFFICE BACKGROUND= NO BACKGROUND/WHITE

    I want....COLOR =BLACK....... MISSING

    ACC.OPTIONS.GENERAL.OFFICE THEME = DARK GRAY

    MainWindow (Child Class = MDIClient, Title =)


    dBase,FoxPro,MS Access 2003,(2010=Not rec.),Office 2010+ACC.2013 ,Symbian C++, AC.2013.SystemResource.GetCurrentFreeSize=?

    Wednesday, February 10, 2016 1:22 PM

Answers

  • Hi, PACALA_BA

    Since this is the forum to discuss questions and feedback for Access for Developers, if you want to change background color of Access Main Window using Windows API, I recommend you could post your

    question to the forum for Windows Desktop Development for further assistance:

    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn

    from your interaction with us.

    Thank you for your understanding.

    • Marked as answer by David_JunFeng Saturday, March 5, 2016 3:23 PM
    Wednesday, February 24, 2016 9:24 AM

All replies

  • The Access main window does not respond to the Office Background setting, as you found out.

    It actually takes a fair amount of Windows API calls to paint that window in any color you like. If you're unfamiliar with it, you may want to let it slide. One alternative is to use a tabbed interface (which ensures full screen forms) and forms with a nice background color. In such setup you never have to see the Access background window.


    -Tom. Microsoft Access MVP

    Thursday, February 11, 2016 3:35 AM
  • Hi

    Why is there DARK THEME and MDIClient.backcolor....=WHITE ...???


    dBase,FoxPro,MS Access 2003,(2010=Not rec.),Office 2010+ACC.2013 ,Symbian C++, AC.2013.SystemResource.GetCurrentFreeSize=?

    Thursday, February 11, 2016 5:03 PM
  • >>>Why is there DARK THEME and MDIClient.backcolor....=WHITE ...???

    According to your description, I have reproduce this issue, as far as I know that Access does not use a system color for its window's background. If you can find a Display Properties - Appearance setting that changes the Access window color, then that's the one to use, but I couldn't find one. So I suggest that you could submit any feedback to Access User Voice:

    http://access.uservoice.com/

    Thanks for your understanding.

    Friday, February 12, 2016 6:47 AM
  • This works...

    Const BLACK_BRUSH = 4
    ln_HWND = WW_AC_WORK_HWND
    hdc = GetDC(ln_HWND)
    '..hdc = GetWindowDC(ln_HWND)
    '...ln_RC = GetWindowRect(ln_HWND, lpRect)
    ln_RC = GetClientRect(ln_HWND, lpRect)
    hBrush = 1
    hBrush = GetStockObject(BLACK_BRUSH)
    'FillRect(hdc, &rect, (HBRUSH) (COLOR_WINDOW+1));
    ln_RC = FillRect(hdc, lpRect, hBrush)   'BLACK=0
    ln_RC = ReleaseDC(ln_HWND, hdc)
    ln_RC = DeleteObject(hBrush) 'succes>0

    but it is not updated, may be i should use....

    CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)


    dBase,FoxPro,MS Access 2003,(2010=Not rec.),Office 2010+ACC.2013 ,Symbian C++, AC.2013.SystemResource.GetCurrentFreeSize=?

    Friday, February 12, 2016 2:48 PM
  • Hi, PACALA_BA

    Since this is the forum to discuss questions and feedback for Access for Developers, if you want to change background color of Access Main Window using Windows API, I recommend you could post your

    question to the forum for Windows Desktop Development for further assistance:

    https://social.msdn.microsoft.com/Forums/windowsdesktop/en-US/home?category=windowsdesktopdev

    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn

    from your interaction with us.

    Thank you for your understanding.

    • Marked as answer by David_JunFeng Saturday, March 5, 2016 3:23 PM
    Wednesday, February 24, 2016 9:24 AM