3089 views|6 replies

81

Posts

0

Resources
The OP

Is there a way to adjust the z-order distribution rules of windows in EVC? [Copy link]

   When developing Win32 applications in WinCE, it is very frustrating that the Z order of controls is completely opposite to that in VS. In VS, controls created later are in front, but in CE, controls created first are in front, which causes a lot of inconvenience. For example, if you want to declare a Group Button, and then use this Group Button as the parent window to create controls in it (so that when you adjust the position of the Group Button later, you don’t have to adjust the controls inside). There is no problem in VS, but it becomes frustrating in EVC: if the parent window’s Group Button is created first, the child controls inside will be overwritten; if the parent window’s Group Button is created later, the child controls cannot get their handles and cannot be created at all. WTF… Is there any way to make the Z order in EVC the same as in VS… Do I have to SetWindowPos for each window…
This post is from Embedded System

Latest reply

Then use SetWindowPos() for each window, wouldn't the compatibility be much higher?  Details Published on 2009-1-8 09:52

73

Posts

0

Resources
2
This is the rule of CE. If you want to meet your requirements, you can close a class yourself, and then encapsulate SETWINDOWPOS, OK?
This post is from Embedded System

74

Posts

0

Resources
3

Haha, I verified that it is true. The solution above seems good.
This post is from Embedded System

90

Posts

0

Resources
4
Quote from BEYONDMA's reply: This is the rule of CE. If you want to achieve your requirements, you can close a class yourself, and then encapsulate SETWINDOWPOS. OK?
You can only do it yourself
This post is from Embedded System

75

Posts

0

Resources
5
Today I looked at the implementation code of Free Pinyin. In the Z order, it is implemented by calling SetWindowPos().
This post is from Embedded System

68

Posts

0

Resources
6
Good question, I'll learn more about it, I haven't noticed this kind of problem before!
This post is from Embedded System

83

Posts

0

Resources
7
Then use SetWindowPos() for each window, wouldn't the compatibility be much higher?
This post is from Embedded System

Find a datasheet?

EEWorld Datasheet Technical Support

Related articles more>>

    EEWorld
    subscription
    account

    EEWorld
    service
    account

    Automotive
    development
    circle

    Robot
    development
    community

    Copyright © 2005-2025 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
    快速回复 返回顶部 Return list