none
求帮助:请问如何将InkPicture变为透明背景? RRS feed

答案

  • 你好,

    如果创建InkPicture控件在透明控件(例如设置WS_EX_TRANSPARENT 属性的GroupBox),将使InkPicture不再着色。

    具体请参看 InkPicture Control Reference .


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2013年12月20日 9:57
    版主
  • 你好,

    十分感谢你的反馈信息。

    >>我将InkPicture控件放在GroupBox中,已将groupbox的TRANSPARENT  属性设置为true.再将InkPicture的背景设为透明色,发现还不是透明的呀,请问我是哪里做错了呀?

    WS_EX_TRANSPARENT 窗口风格并不代表“透明的”窗口,它仅表示“在同类窗口上绘画”。这种风格被称为“透明的”不是因为它使窗口透明,而是因为它使透明成为可能。设置WS_EX_TRANSPARENT 是使子控件透明着色的步骤之一(但不是唯一步骤)。

    另外一个重要步骤是确保控件没有在它的WM_ERASE­BKGND中擦除它的背景,这个步骤是On­Ctl­Color重写所表现。

    详细内容请参看: Why isn't my transparent static control transparent? .

    >>能否帮我写个简单的透明例子呀?谢谢了!这个问题苦恼我很久了

    因为我现在没有相关代码样例,希望以下链接中的代码对你有所帮助:

    making transparent backgrounds

    Capturing ink strokes with background Image from InkPicture

    Extended Window Styles

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    2013年12月23日 5:22
    版主

全部回复

  • 你好,

    如果创建InkPicture控件在透明控件(例如设置WS_EX_TRANSPARENT 属性的GroupBox),将使InkPicture不再着色。

    具体请参看 InkPicture Control Reference .


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2013年12月20日 9:57
    版主
  • 我将InkPicture控件放在GroupBox中,已将groupbox的TRANSPARENT 属性设置为true.再将InkPicture的背景设为透明色,发现还不是透明的呀,请问我是哪里做错了呀?能否帮我写个简单的透明例子呀?谢谢了!这个问题苦恼我很久了
    2013年12月20日 12:13
  • 你好,

    十分感谢你的反馈信息。

    >>我将InkPicture控件放在GroupBox中,已将groupbox的TRANSPARENT  属性设置为true.再将InkPicture的背景设为透明色,发现还不是透明的呀,请问我是哪里做错了呀?

    WS_EX_TRANSPARENT 窗口风格并不代表“透明的”窗口,它仅表示“在同类窗口上绘画”。这种风格被称为“透明的”不是因为它使窗口透明,而是因为它使透明成为可能。设置WS_EX_TRANSPARENT 是使子控件透明着色的步骤之一(但不是唯一步骤)。

    另外一个重要步骤是确保控件没有在它的WM_ERASE­BKGND中擦除它的背景,这个步骤是On­Ctl­Color重写所表现。

    详细内容请参看: Why isn't my transparent static control transparent? .

    >>能否帮我写个简单的透明例子呀?谢谢了!这个问题苦恼我很久了

    因为我现在没有相关代码样例,希望以下链接中的代码对你有所帮助:

    making transparent backgrounds

    Capturing ink strokes with background Image from InkPicture

    Extended Window Styles

    Note: This response contains a reference to a third party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet.


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.


    2013年12月23日 5:22
    版主