Shoutbox

[?] Registering notifications for a window control - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Messenger Plus! for Live Messenger (/forumdisplay.php?fid=4)
+---- Forum: Scripting (/forumdisplay.php?fid=39)
+----- Thread: [?] Registering notifications for a window control (/showthread.php?tid=68595)

[?] Registering notifications for a window control by Matti on 11-18-2006 at 11:19 AM

Good, since the introduction of the PlusWnd::RegisterMessageNotification function I saw this as the solution to my child windows resizing problem. And yes, it was. By registering WM_SIZE and WM_SIZING for my main window I don't need a timer anymore to refresh the size. :)

However, I still have a timer for my window. This timer is used to update the preview which shows how the countdown will look like. RegisterMessageNotification works for PlusWnd objects, but how can I make it work for a control? *-) So, for example, when the date of a DateTimeControl is changed (DTN_DATETIMECHANGE), it should trigger a function.


RE: [?] Registering notifications for a window control by matty on 11-18-2006 at 12:58 PM

quote:
Originally posted by Mattike
Good, since the introduction of the PlusWnd::RegisterMessageNotification function I saw this as the solution to my child windows resizing problem. And yes, it was. By registering WM_SIZE and WM_SIZING for my main window I don't need a timer anymore to refresh the size. :)

However, I still have a timer for my window. This timer is used to update the preview which shows how the countdown will look like. RegisterMessageNotification works for PlusWnd objects, but how can I make it work for a control? *-) So, for example, when the date of a DateTimeControl is changed (DTN_DATETIMECHANGE), it should trigger a function.
Not possible, it is only for Plus! Windows.
RE: [?] Registering notifications for a window control by Matti on 11-18-2006 at 01:35 PM

So, there's no way to do this? :(

Then I better keep my timer. 8-)


RE: [?] Registering notifications for a window control by deAd on 11-18-2006 at 03:10 PM

A message should be sent to the parent window when it's changed, or at least a click message -- you can register that too.