首页 > REDM基础教程 > REDM基础教程11-控件的XML属性规则













/// <summary>
	///		<see cref="DM::ListBoxEx"/>的xml属性定义
	/// </summary>
	class ListBoxExAttr:public DUIScrollBaseAttr
		static wchar_t* INT_itemheight;                                           ///< 项的默认高度,示例:itemheight="10"
		static wchar_t* INT_cursel;                                               ///< 当前选项,示例:cursel="1"


















前面可以看到,所有的Attr类,每个成员变量都是static wchar*,都代表一个属性,static成员变量是需要初始化的


#define  DMAttrValueInit(cls,x)						__declspec(selectany)   wchar_t*  cls::x = DMInitAttrDispatch::GetAttrValue(L#cls,L#x);

初值就是Attribute属性名,即INT_itemheight = "itemheight";INT_cursel="cursel";COLOR_clritembg="clritembg"






    DM_INT_ATTRIBUTE(DMAttr::ListBoxExAttr::INT_itemheight, m_iDefItemHei, DM_ECODE_OK)











版权所有 © 转载时必须以链接形式注明作者和原始出处!

32 Responses to “REDM基础教程11-控件的XML属性规则”

  1. #1 minecraft 回复 | 引用 Post:2018-10-04 08:52

    bookmarked!!, I like your site!

  2. #2 minecraft 回复 | 引用 Post:2018-10-04 14:26

    If you are going for best contents like I do, simply visit this
    web site daily for the reason that it provides feature contents, thanks

  3. #3 minecraft 回复 | 引用 Post:2018-10-04 22:38

    Please let me know if you’re looking for a article writer for your weblog.
    You have some really great articles and I think I would be
    a good asset. If you ever want to take some of the load off, I’d absolutely
    love to write some content for your blog in exchange for a link back to mine.
    Please send me an email if interested. Thanks!

  4. #4 minecraft 回复 | 引用 Post:2018-10-05 16:04

    Wow that was strange. I just wrote an really long comment but after
    I clicked submit my comment didn’t appear.
    Grrrr… well I’m not writing all that over again. Anyways, just wanted to say great blog!

  5. I have been surfing on-line greater than 3 hours lately, but
    I by no means discovered any attention-grabbing article like yours.
    It is beautiful value enough for me. In my opinion, if all site owners and bloggers made excellent content as you did, the web shall be a lot
    more helpful than ever before.

  6. If you wish for to get a great deal from this paragraph then you have to apply
    these methods to your won blog.

  7. #7 Coconut Oil 回复 | 引用 Post:2018-10-23 05:14

    Incredible! This blog looks exactly like my old one! It’s on a entirely different
    subject but it has pretty much the same page layout and design. Great choice of colors!

  8. #8 Coconut Oil 回复 | 引用 Post:2018-10-24 06:36

    Hello my family member! I wish to say that this article
    is amazing, nice written and include almost all important infos.
    I’d like to see more posts like this .

  9. We stumbled over here different web address and thought I may as well check things out.
    I like what I see so now i am following you. Look forward to looking over your web
    page for a second time.

  10. #10 Coconut Oil Benefits 回复 | 引用 Post:2018-10-29 23:31

    It’s appropriate time to make a few plans for the future and
    it is time to be happy. I have learn this post and if I
    may I desire to suggest you few fascinating issues or suggestions.

    Perhaps you can write next articles relating to this article.
    I wish to learn more things about it!

  11. #11 quest bars cheap 回复 | 引用 Post:2018-11-04 00:41

    I loved as much as you will receive carried out right here.
    The sketch is attractive, your authored subject matter stylish.
    nonetheless, you command get bought an shakiness over that you wish be delivering the following.
    unwell unquestionably come further formerly again since exactly the
    same nearly very often inside case you shield this hike.

  12. Greetings! I know this is kinda off topic however I’d figured I’d ask.

    Would you be interested in exchanging links or maybe guest
    writing a blog post or vice-versa? My blog covers a lot of the same subjects as
    yours and I feel we could greatly benefit from each other.
    If you happen to be interested feel free to shoot me
    an email. I look forward to hearing from you! Terrific blog by the way!

  13. #13 Sling TV 回复 | 引用 Post:2018-11-11 01:09

    I constantly emailed this blog post page to all my friends,
    as if like to read it then my contacts will too.

  14. Sling tv coupons and promo codes for november 2018
    Admiring the commitment you put into your site and in depth information you provide.
    It’s good to come across a blog every once in a while that
    isn’t the same outdated rehashed information.
    Excellent read! I’ve saved your site and I’m adding your RSS feeds to my
    Google account. Sling tv coupons and promo codes for november 2018

  15. Oh my goodness! Impressive article dude! Thank
    you, However I am experiencing difficulties with your RSS.
    I don’t know why I am unable to subscribe to it.
    Is there anyone else getting similar RSS problems? Anyone who knows the
    answer can you kindly respond? Thanx!!

  16. #16 descargar facebook 回复 | 引用 Post:2018-11-22 08:52

    I was wondering if you ever thought of changing the
    structure of your website? Its very well written; I love
    what youve got to say. But maybe you could a little more in the way of
    content so people could connect with it better. Youve got an awful lot of text for
    only having 1 or 2 images. Maybe you could space it out better?

  17. #17 descargar facebook 回复 | 引用 Post:2018-12-06 08:55

    It’s going to be end of mine day, but before end I am reading this enormous paragraph
    to improve my knowledge.

  18. #18 minecraft 回复 | 引用 Post:2019-03-21 08:41

    I have read several excellent stuff here. Definitely price bookmarking for revisiting.

    I wonder how much effort you set to make one of these great informative site.

  19. #19 http://goo.gl/8r1Yuu 回复 | 引用 Post:2019-03-30 04:14

    I go to see everyday some web pages and sites to read content, but this blog offers quality based articles.

  20. #20 minecraft 回复 | 引用 Post:2019-03-31 18:58

    Hiya! Quick question that’s totally off topic. Do you know how
    to make your site mobile friendly? My blog looks weird when browsing from my apple iphone.
    I’m trying to find a theme or plugin that might be able to resolve this issue.
    If you have any recommendations, please share. Thank you!

  21. #21 tinyurl.com 回复 | 引用 Post:2019-04-03 10:14

    This piece of writing will help the internet visitors for
    creating new blog or even a weblog from start to end.

  22. #22 tinyurl.com 回复 | 引用 Post:2019-04-04 06:16

    I think the admin of this web page is actually
    working hard in support of his web site, because
    here every stuff is quality based stuff.

  23. #23 tinyurl.com 回复 | 引用 Post:2019-04-04 16:37

    Link exchange is nothing else except it is only placing the other
    person’s webpage link on your page at appropriate place and other person will
    also do same in favor of you.

  24. #24 minecraft 回复 | 引用 Post:2019-04-08 23:54

    Thanks a lot for sharing this with all people you really
    know what you are talking about! Bookmarked.
    Please also discuss with my website =). We will have a hyperlink trade agreement between us

  25. #25 gamefly free trial 回复 | 引用 Post:2019-05-02 08:40

    Its like you read my mind! You seem to know a lot about this,
    like you wrote the book in it or something. I think
    that you could do with some pics to drive the message home a bit, but
    instead of that, this is great blog. An excellent read.
    I’ll certainly be back.

  26. #26 gamefly free trial 回复 | 引用 Post:2019-05-02 19:24

    Wow, that’s what I was exploring for, what a data!
    existing here at this weblog, thanks admin of this site.

  27. #27 gamefly free trial 回复 | 引用 Post:2019-05-21 01:45

    It’s a shame you don’t have a donate button! I’d definitely donate to this fantastic blog!
    I suppose for now i’ll settle for book-marking
    and adding your RSS feed to my Google account.
    I look forward to fresh updates and will talk about this website with my Facebook group.

    Talk soon!

  28. You really make it seem so easy together with your presentation but I find
    this topic to be actually something that I believe I would never understand.
    It kind of feels too complicated and very extensive for me.
    I’m looking ahead to your subsequent submit, I’ll attempt to get the cling of it!

  29. Hello, I wish for to subscribe for this web site to obtain most recent updates,
    so where can i do it please help.

  30. Its such as you learn my mind! You appear to grasp so much approximately this,
    like you wrote the guide in it or something. I believe that you simply could do with
    a few % to power the message home a bit, but other than that,
    that is wonderful blog. An excellent read.
    I will certainly be back.

  31. #31 gamefly free trial 回复 | 引用 Post:2019-06-04 16:35

    I all the time used to study article in news papers but now as I am a user of web
    so from now I am using net for content, thanks to web.

  32. This is the right webpage for anybody who hopes to understand
    this topic. You realize a whole lot its almost tough to
    argue with you (not that I personally will need to…HaHa).

    You definitely put a brand new spin on a topic which has been discussed for
    years. Great stuff, just wonderful!