how to use API SetSysColors

ax123ax123 Posts: 3Member
edited 2011-11-30 in Dynamics AX
Hi,

Could anyone help me how to use this API function in Axapta?

#define.USER32('USER32')

DLL _winApiDLL = new DLL(#USER32);

DLLFunction SetSysColors, GetSysColors;
#winapi
;



SetSysColors = new DLLFunction(_winApiDLL, 'SetSysColors');
SetSysColors.returns(ExtTypes::DWord); // bool
SetSysColors.arg(ExtTypes::DWord,
ExtTypes::Pointer,
ExtTypes::Pointer);
SetSysColors.call(1,9,#COLOR_BACKGROUND);

Thanks alot

Comments

  • ax123ax123 Posts: 3Member
    Yep, found it
  • MannyIndyMannyIndy Posts: 1Member
    Hello,
    It seems like a long time since this was originally posted, but do you still have the code for this programming task?
    Can you share it with me?
    Thanks
Sign In or Register to comment.