hi,

i'm having problem on sip to work on today screen. the SIP is not shown.

what goes wrong here, or something i missed?

wm_create...
SHInitExtraControls();
CreateWindow(WC_SIPPREF,L"",WS_CHILD,-10,10,5,5,
hWnd,(HMENU)IDC_SIP, hInst,0)

wm_command...
switch( HIWORD(wParam) )
{
case EN_SETFOCUS:
SHSipPreference(hWnd, SIP_UP);
break;
case EN_KILLFOCUS:
SHSipPreference(hWnd, SIP_DOWN);
break;
}

Re: SIP on today screen by TJ

TJ
Tue Jan 10 15:23:58 CST 2006

SHSipPreference doesn't always work and appears not to when used in a
plugin. Use ShowWindow(FindWindow(L"MS_SIPBUTTON", NULL),SW_SHOW); and
ShowWindow(FindWindow(L"MS_SIPBUTTON", NULL),SW_HIDE); respectively.

Renato wrote:
> hi,
>
> i'm having problem on sip to work on today screen. the SIP is not shown.
>
> what goes wrong here, or something i missed?
>
> wm_create...
> SHInitExtraControls();
> CreateWindow(WC_SIPPREF,L"",WS_CHILD,-10,10,5,5,
> hWnd,(HMENU)IDC_SIP, hInst,0)
>
> wm_command...
> switch( HIWORD(wParam) )
> {
> case EN_SETFOCUS:
> SHSipPreference(hWnd, SIP_UP);
> break;
> case EN_KILLFOCUS:
> SHSipPreference(hWnd, SIP_DOWN);
> break;
> }
>
>

Re: SIP on today screen by Renato

Renato
Wed Jan 11 04:03:17 CST 2006

works like charm =)

"TJ" <someone@somewhere.com> wrote in message
news:ePqdnUrBLuhzuFnenZ2dnUVZ_sqdnZ2d@midco.net...
> SHSipPreference doesn't always work and appears not to when used in a
> plugin. Use ShowWindow(FindWindow(L"MS_SIPBUTTON", NULL),SW_SHOW); and
> ShowWindow(FindWindow(L"MS_SIPBUTTON", NULL),SW_HIDE); respectively.
>
> Renato wrote:
>> hi,
>>
>> i'm having problem on sip to work on today screen. the SIP is not shown.
>>
>> what goes wrong here, or something i missed?
>>
>> wm_create...
>> SHInitExtraControls();
>> CreateWindow(WC_SIPPREF,L"",WS_CHILD,-10,10,5,5,
>> hWnd,(HMENU)IDC_SIP, hInst,0)
>>
>> wm_command...
>> switch( HIWORD(wParam) )
>> {
>> case EN_SETFOCUS:
>> SHSipPreference(hWnd, SIP_UP);
>> break;
>> case EN_KILLFOCUS:
>> SHSipPreference(hWnd, SIP_DOWN);
>> break;
>> }
>>