Windows hourglass (hourglass) display problems

Source: Internet
Author: User

From: http://blog.csdn.net/AlicePeter/article/details/3862059

The problem solved just now: In wince 5, use EVC to write the hourglass that the application calls and shows the busy status.

Address of related post I sent: http://topic.csdn.net/u/20090203/09/1b4bda94-deea-4b62-b78b-4739bbd5167e.html

The first case is as follows: the hourglass lasts for 5 seconds during initialization. The actual result is that I double-click to open the application and can't see anything. If I click the screen, the hourglass is displayed. If the pen does not click the screen, the hourglass disappears immediately. it seems that the hourglass appears only when the screen is clicked.

Bool chourglassdlg: oninitdialog () {cdialog: oninitdialog (); // set the icon for this dialog. the framework does this automatically // when the application's main window is not a dialog seticon (m_hicon, true); // set big icon seticon (m_hicon, false ); // set small icon centerwindow (getshorttopwindow (); // center to the HPC screen setcursor (: wce_fctn (loadcursor) (null, idc_wait); sleep (5000 ); setcursor (null); Return true; // return true unless you set the focus to a control} second case: as shown in the following figure, the hourglass is displayed for 5 seconds when the button is pressed, the result is that when I click the button, the hourglass icon will appear, but the hourglass does not move and there is no effect of Sand Leakage. When I click it, the screen will show the effect of sand leakage, if you do not click the screen, there is no effect of sand leakage.
void CHourGlassDlg::OnHourglass() {    // TODO: Add your control notification handler code here    SetCursor(AfxGetApp()->LoadCursor(IDC_WAIT));    Sleep(5000);    SetCursor(NULL);}
I put the same application above in the win mobile system, and the hourglass works normally. When initializing and clicking the button, the animated hourglass will appear. this seems to be related to the wince system. some netizens suggested that the window does not process any messages during sleep (5000. I removed sleep (5000); and setcursor (null); from the above function. The Hourglass cannot be displayed normally. so the problem is not here. moreover, the hourglass effect of the same program on win mobile is normal.
After searching, there are a lot of Internet users outside China with the same problem: the excerpt is as follows:
http://www.pocketpcjunkies.com/Uwe/Forum.aspx/wince-pb/11133/Hourglass-Needs-tapping
Hourglass: Needs tapping

 Tarun - 01 Mar 2006 12:10 GMTThis happens when I open up folders, or change view options, that maytake some time :It looks like the hourglass in the square box is actually there, but Ican't see it.I can see it if I touch the screen while it should be displayed.If I touch the screen while my application is working the hourglass isbeing displayedand it is turning around with every touch on the screen.So I'm wondering what am I missing in my platform to show this boxwithouthaving totouch the screen?Has anyone experienced the same problem? Please HELP-T@NReply to this Message anonymous - 01 Mar 2006 15:17 GMTI have the problem, but it requires both SYSGEN_TOUCH and SYSGEN_MOUSE to be set, so that the mouseandtouchcursor option is used.It is a bug in microsoft's private code. So far, I've not been able to get it fixed. I've opened a case and had it called a 'nuisance' in which they won't fix it. I have a suggested fix, and I can't find the correct way to communicate it to someone that cares.I'd love to see it get fixed. Its a one line fix.> This happens when I open up folders, or change view options, that may> take some time :[quoted text clipped - 16 lines]> > -T@NReply to this Message  Tarun - 02 Mar 2006 10:03 GMTHi there..."I'd love to see it get fixed."u already have this fix, or you dont have it??"Its a one line fix. "If you have a fix already, this would probably be the right place topost it, in order to help others :)-T@NReply to this Message  Tarun - 02 Mar 2006 10:32 GMTI got the fix...removing the SYSGEN_CURSOR (mouse) component from the OS designresolved this.Thanks "anonymous", you gave me a good pointer!-T@NReply to this Message

Also:

Displaying hourglass cursor


ABCD-04 Oct 2005 maid all,

I have a wince. Net 4.2 cdialog app that is to display a hourglass when
Downloading data.

I tried using various methods such as the loadcursor,
Setcursor (loadcursor (null, idc_wait) and then showcursor. I also tried
The "cwaitcursor wait" method.

However, the cursor won't show up until I tagged on the screen,

Moment the stylus left the screen, it disappeared.

Is there a trick or way to make the cursor stayed without having
Touch the screen?

Or the problem OEM dependent on the device vendors?

Tia.

 

Apparently, the aboveTarunA solution has been provided, that is
Removing the sysgen_cursor (Mouse) component from the OS design.

So I also want to remove the mouse,

First, delete the mouse component in Pb, but the prompt cannot be deleted directly, because there is a dependency.

Add the following content to the pb5x_cmd_line_bld_env_vars.bat file in the BSP directory:

Set sysgen_cursor =, the result is still not improved.

Finally

C:/wince500/platform/zylonite_mhl. Add set sysgen_cursor = to the cebasecesysgen_cebase.bat file. The result is displayed in the hourglass.

 

When compiling the wince command line, I don't know where to call the file cebasecesysgen_cebase.bat. The command line compilation sequence is unclear.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.