What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Messenger Plus! for Live Messenger » Scripting » [?] Setting the format of a DateTimeControl

[?] Setting the format of a DateTimeControl
Author: Message:
Eljay
Elite Member
*****

Avatar
:O

Posts: 2949
Reputation: 77
– / Male / –
Joined: May 2004
RE: [?] Setting the format of a DateTimeControl
umm the page you linked to answered it 8-)

quote:
lpszFormat
    Long pointer to a null-terminated format string...

You pass a pointer to the format string not the string itself.

So you should put the string in a databloc first and pass the pointer to that:
code:
var DTM_SETFORMAT = 0x1032;
var Format = Interop.Allocate(((Language.WndSettings['DateFormat'].length) * 2) + 2);
Format.WriteString(0, Language.WndSettings['DateFormat']);
Wnd.SendControlMessage('DatCDDate', DTM_SETFORMAT, 0, Format.DataPtr);
09-09-2006 07:37 PM
Profile PM Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[?] Setting the format of a DateTimeControl - by Matti on 09-09-2006 at 06:56 PM
RE: [?] Setting the format of a DateTimeControl - by Eljay on 09-09-2006 at 07:37 PM
RE: [?] Setting the format of a DateTimeControl - by Matti on 09-10-2006 at 07:16 AM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On