Thread View: borland.public.cppbuilder.nativeapi
3 messages
3 total messages
Started by Renald Yazmir
Fri, 07 Mar 2008 13:45
Child window delay during activation
Author: Renald Yazmir
Date: Fri, 07 Mar 2008 13:45
Date: Fri, 07 Mar 2008 13:45
35 lines
1629 bytes
1629 bytes
Hello I open 2 child windows. I make them partially cover each other, so I can click on their title bars. Let's say child window #1 is active. When I click on child window #2 title bar, the title bar and border of the child window #2 appears over the child window #1 for about 1 second. Then child window #2 is brought to the foreground. I would like to eliminate this delay. How can I get this delay? How can I reset this delay to 0? I unsuccessfully tried SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, NULL, SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE); Thank you Rony
Re: Child window delay during activation
Author: Bob Gonder
Date: Fri, 07 Mar 2008 19:38
Date: Fri, 07 Mar 2008 19:38
18 lines
1394 bytes
1394 bytes
Renald Yazmir wrote: >SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, NULL, >SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE); I don't know if that function will fix your problem, but you are using it wrong. Check the return value and GetLastError(). <Help> Set pvParam to the new timeout value </Help> You have pvParam == NULL. Try UINT Param = 0; SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, &Param, >SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE);
Re: Child window delay during activation
Author: Renald Yazmir
Date: Fri, 07 Mar 2008 19:50
Date: Fri, 07 Mar 2008 19:50
26 lines
1691 bytes
1691 bytes
Thanks Unfortunately, this function did not fix the problem "Bob Gonder" <notbg@notmindspring.invalid> wrote in message news:9s53t3heerl6i2gr20fsk0l7srhoe6oarf@4ax.com... > Renald Yazmir wrote: > >>SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, NULL, >>SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE); > > I don't know if that function will fix your > problem, but you are using it wrong. > Check the return value and GetLastError(). > > <Help> > Set pvParam to the new timeout value > </Help> > > You have pvParam == NULL. > Try > UINT Param = 0; > SystemParametersInfo(SPI_SETFOREGROUNDLOCKTIMEOUT, 0, &Param, >>SPIF_SENDWININICHANGE | SPIF_UPDATEINIFILE); > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads