{"id":879,"date":"2022-12-08T07:30:10","date_gmt":"2022-12-08T06:30:10","guid":{"rendered":"http:\/\/lesmrdtrucs.mataf35400.fr\/?page_id=879"},"modified":"2022-12-08T07:35:51","modified_gmt":"2022-12-08T06:35:51","slug":"rendre-une-feuille-transparente","status":"publish","type":"page","link":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/rendre-une-feuille-transparente\/","title":{"rendered":"Rendre une feuille transparente\u200b"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"879\" class=\"elementor elementor-879\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-48ded6f4 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"48ded6f4\" data-element_type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-775dc51f\" data-id=\"775dc51f\" data-element_type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-47ff7065 elementor-widget elementor-widget-text-editor\" data-id=\"47ff7065\" data-element_type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<p>A mettre dans les d\u00e9clarations de la feuille:<\/p>\n<p><span style=\"color: #339966;\"><em>&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-Pour la transparence de la feuille<\/em><\/span><br><span style=\"color: #339966;\"><em>&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/span><br><span style=\"color: #339966;\"><em>&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/span><\/p>\n<p><span style=\"color: #339966;\"><em>&lsquo;D\u00e9claration des constantes<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_FRAMECHANGED = &amp;H20<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_DRAWFRAME = SWP_FRAMECHANGED<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_HIDEWINDOW = &amp;H80<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOACTIVATE = &amp;H10<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOCOPYBITS = &amp;H100<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOMOVE = &amp;H2<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOOWNERZORDER = &amp;H200<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOREDRAW = &amp;H8<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOREPOSITION = SWP_NOOWNERZORDER<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOSIZE = &amp;H1<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_NOZORDER = &amp;H4<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Const SWP_SHOWWINDOW = &amp;H40<\/em><\/span><\/p>\n<p><span style=\"color: #339966;\"><em>&lsquo;fonction permettant de positionner la feuille en fond d&rsquo;\u00e9cran<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Private Declare Function SetWindowPos Lib \u00ab\u00a0user32\u00a0\u00bb (ByVal hwnd As Long, ByVal param1 As Long, ByVal x As Long, ByVal y As Long, ByVal largeur As Long, ByVal hauteur As Long, ByVal param2 As Long) As Long<\/em><\/span><\/p>\n<p><span style=\"color: #339966;\"><em>&lsquo;fonctions permettant la transparence de la form et de la list<\/em><\/span><br><span style=\"color: #0000ff;\"><em>Private Declare Function SetLayeredWindowAttributes Lib \u00ab\u00a0user32\u00a0\u00bb (ByVal hwnd As Long, ByVal couleur As Long, ByVal degre_trans As Byte, ByVal mode As Long) As Boolean<\/em><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><em>Private Declare Function SetWindowLong Lib \u00ab\u00a0user32\u00a0\u00bb Alias \u00ab\u00a0SetWindowLongA\u00a0\u00bb (ByVal hwnd As Long, ByVal nIndex As Long, ByVal dwNewLong As Long) As Long<\/em><\/span><\/p>\n<p><span style=\"color: #0000ff;\"><em>Private Declare Function GetWindowLong Lib \u00ab\u00a0user32\u00a0\u00bb Alias \u00ab\u00a0GetWindowLongA\u00a0\u00bb (ByVal hwnd As Long, ByVal nIndex As Long) As Long<\/em><\/span><br><span style=\"color: #339966;\"><em>&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/span><br><span style=\"color: #339966;\"><em>&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/span><br><span style=\"color: #339966;\"><em>&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/em><\/span><br><\/p><p>A mettre dans le load de la feuille:<\/p>\n<p><span style=\"color: #339966;\"><em>&nbsp;&nbsp; &nbsp;&lsquo;donne une couleur au fond de la form<\/em><\/span><br><em><span style=\"color: #3366ff;\"><span style=\"color: #339966;\">&nbsp;&nbsp; &nbsp;&lsquo; au chargement, on rend la couleur noire transparente<\/span><br>&nbsp;&nbsp; &nbsp;Me.BackColor = vbBlack<\/span><\/em><\/p>\n<p><span style=\"color: #339966;\"><em>&nbsp;&nbsp; &nbsp;&lsquo;avec getwindowlong pass\u00e9e avec le param\u00e8tre -20 on recherche le style \u00e9tendu de la fen\u00eatre<\/em><\/span><br><em><span style=\"color: #3366ff;\">&nbsp;&nbsp; &nbsp;attrib = GetWindowLong(Me.hwnd, -20)<\/span><\/em><\/p>\n<p><span style=\"color: #339966;\"><em>&nbsp;&nbsp; &nbsp;&lsquo; avec setwindowlong, on rend la fenetre prete pour la fonction setlayeredwindowattribute<\/em><\/span><br><em><span style=\"color: #3366ff;\">&nbsp;&nbsp; &nbsp;SetWindowLong Me.hwnd, -20, attrib Or &amp;H80000<\/span><\/em><\/p>\n<p><span style=\"color: #339966;\"><em>&nbsp;&nbsp; &nbsp;&lsquo;la fonction setlayeredwindowattribute, on rend la couleur noire transparente<\/em><\/span><br><em><span style=\"color: #3366ff;\">&nbsp;&nbsp; &nbsp;SetLayeredWindowAttributes Me.hwnd, vbBlack, 0, 1&nbsp;&nbsp; &nbsp;<\/span><\/em><\/p>\n<p><span style=\"color: #339966;\"><em>&nbsp;&nbsp; &nbsp;&lsquo;puis on la place en arri\u00e8re plan<\/em><\/span><br><em><span style=\"color: #3366ff;\">&nbsp;&nbsp; &nbsp;SetWindowPos Me.hwnd, 1, 0, 0, 0, 0, &amp;H1 Or &amp;H2<\/span> <\/em><\/p>\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>A mettre dans les d\u00e9clarations de la feuille: &lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-Pour la transparence de la feuille&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;&lsquo;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &lsquo;D\u00e9claration des constantesConst SWP_FRAMECHANGED = &amp;H20Const SWP_DRAWFRAME = SWP_FRAMECHANGEDConst SWP_HIDEWINDOW = &amp;H80Const SWP_NOACTIVATE = &amp;H10Const SWP_NOCOPYBITS = &amp;H100Const SWP_NOMOVE = &amp;H2Const SWP_NOOWNERZORDER = &amp;H200Const SWP_NOREDRAW = &amp;H8Const SWP_NOREPOSITION = SWP_NOOWNERZORDERConst SWP_NOSIZE = &amp;H1Const SWP_NOZORDER = &amp;H4Const SWP_SHOWWINDOW = &amp;H40 &lsquo;fonction permettant [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"0","ocean_second_sidebar":"0","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"0","ocean_custom_header_template":"0","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"0","ocean_menu_typo_font_family":"0","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"0","footnotes":""},"class_list":["post-879","page","type-page","status-publish","hentry","entry"],"_links":{"self":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/comments?post=879"}],"version-history":[{"count":7,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/879\/revisions"}],"predecessor-version":[{"id":889,"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/pages\/879\/revisions\/889"}],"wp:attachment":[{"href":"https:\/\/lesmrdtrucs.mataf35400.fr\/index.php\/wp-json\/wp\/v2\/media?parent=879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}