Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Date Dialog
#4
Good news, because it really should crash the app, because I forgot that pointer to SYSTEMTIME structure must be in address space of that app, not QM. Try this:

Code:
Copy      Help
def MCM_FIRST 0x1000
def MCM_SETCURSEL (MCM_FIRST + 2)

DATE d="5/5/2005"
d.tosystemtime(+share)

int mc=win("" "SysMonthCal32") ;;change this to "msvb_lib_monthview"
SendMessage mc MCM_SETCURSEL 0 share(mc)

share returns pointer to 1 kB of shared memory. If used without window handle, the pointer is in address space of QM, and QM can write to the shared memory using this pointer. If used with window handle, the pointer is in address space of that app, and can be passed to that app with SendMessage.


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)