how to use API SetSysColors

ax123ax123 Member Posts: 3
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 Member Posts: 3
    Yep, found it
  • MannyIndyMannyIndy Member Posts: 1
    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.