SetSysColors (COLOR_APPWORKSPACE) don't work on Access2003 ?

  • Thread starter Thread starter willy
  • Start date Start date
W

willy

The following code running in A2K seems work different when running on
A2k3.
On A2k this code changes the background of main Access Window.
On A2K3 it changes the background of Access Forms.

Please, does someone know the way to change the Access main window
background color?

Thanks in Advance

Guillem
..............................................the
code..........................
Private Const COLOR_APPWORKSPACE = 12 ' Background of MDI desktop
Global Const gWhite = 16777215

Private Declare Function SetSysColors _
Lib "User32" _
(ByVal nChanges As Long, lpSysColor As Long, _
lpColorValues As Long) As Long

Call SetSysColors(1, COLOR_APPWORKSPACE, gWhite )
......................................................................................
 
Thanks for the Help!

Guillem Serra



See:http://www.lebans.com/changemdibackground.htm
Updated May 03,2003 Now allows you to select a Bitmap Image to place in the
background of the MDI window. No Subclassing required

ChangeMDIBackGround.zip is a database containing a function to allow you to
specify a color or Bitmap Image for the background of the main Access MDI
window. NO SUBCLASSING REQUIRED!

Release Notes:

Version 3

Added support to allow you to specify a Bitmap Image to be placed into the
background of the MDI window.

Version 2

Added support to change the Background and Text colors for the Access Status
Bar.
--

HTH
Stephen Lebanshttp://www.lebans.com
Access Code, Tips and Tricks
Please respond only to the newsgroups so everyone can benefit.
 
Back
Top