Hello everybody,
I need to develop the today plug-in that should dynamically resize, that
is after the user has changed height in plug-in's options.
Here is the code:
...
LRESULT CALLBACK WindowProc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM
lparam)
{
PAINTSTRUCT ps;
RECT rect;
switch (msg) {
case WM_TODAYCUSTOM_CLEARCACHE:
break;
case WM_TODAYCUSTOM_QUERYREFRESHCACHE:
if (Refresh) {
Refresh = FALSE;
((TODAYLISTITEM *)(wparam))->cyp = COptions->GetVar("height");
return TRUE;
....
LRESULT WINAPI CustomItemOptionsDlgProc(HWND hDlg, UINT message, WPARAM
wParam, LPARAM lParam)
{
switch (message)
{
case WM_INITDIALOG:
myOptions=new COptionsDialog(NULL);
myOptions->SubclassWindow(hDlg);
....
As you can see, I subclass Options dialog to COptionsDialog class, and
I've tried re-sending WM_TODAYCUSTOM_QUERYREFRESHCACHE from that dialog
on it's destruct, but I'm not sure if I'm doing it allright - nothing
happens? Maybe it's because I don't know what to pass as wparam
(TODAYLISTITEM *!?)