Skip to content

Commit 618bc79

Browse files
authored
Use self_ for message filter and panel creation
1 parent d638b2b commit 618bc79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/xtd.forms.examples/events/application_add_message_filter/src/application_add_message_filter.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace application_add_message_filter_example {
44
class main_form : public form, public imessage_filter {
55
public:
66
main_form() {
7-
xtd::forms::application::add_message_filter(*this);
7+
xtd::forms::application::add_message_filter(self_);
88
text("Application add message filter example");
99
panel_.border_style(forms::border_style::groove);
1010
skip_button_click_check_box_.auto_size(true);
@@ -22,7 +22,7 @@ namespace application_add_message_filter_example {
2222
}
2323

2424
debug_form debug_form_;
25-
panel panel_ = panel::create(*this, {10, 10}, {200, 100});
25+
panel panel_ = panel::create(self_, {10, 10}, {200, 100});
2626
button button_ = button::create(panel_, "Click me", {10, 10});
2727
check_box skip_button_click_check_box_ = check_box::create(panel_, "Skip button click event", check_state::unchecked, {10, 40});
2828
};

0 commit comments

Comments
 (0)