# Courier V3.1.1

<span style="color: rgb(34, 34, 34); font-size: 1.666em; font-weight: 400;">3.1.1-1 New interface for handling the scope mask of Courier::Messages</span>

A fix was made for the scope mask feature of Courier::Messages to distinguish between the original scope mask of the view and the effective mask of the view, which takes into account the scope mask of its children.

With the fix, the interface of [Courier::View](http://dev.doc.cgistudio.at/APILINK/class_courier_1_1_view.html) class has been modified in the following way:

<div class="contents" id="bkmrk-courier%3A%3Aview%3A%3Aoncha"><div class="contents"><div class="textblock">- Courier::View::OnChangeScopeMask was made deprecated;

- New method [Courier::View::SetScopeMask](http://dev.doc.cgistudio.at/APILINK/class_courier_1_1_view.html#a767a6178726c21a0cf406c9f8bb6e04c) was added; this can be used to set the actual scope mask of the view;

- New method [Courier::View::GetEffectiveScopeMask](http://dev.doc.cgistudio.at/APILINK/class_courier_1_1_view.html#a661d8436c828dde77e1858817ef5cb37) was added; this can be used to retrieve the effective scope mask of the view. The effective scope mask of the view is composed internally, from the actual scope mask and the scope mask of the children of the view;

- New method [Courier::View::OnScopeMaskChanged](http://dev.doc.cgistudio.at/APILINK/class_courier_1_1_view.html#a4e4a8ce6f87eabe1dbc5f7245f6722d3 "Creates the effective scope mask of the view, by applying a logical OR on the actual scope mask of th...") was added. This is called every time the effective scope mask of the view or its actual scope mask gets changed.

</div></div></div>Interface of [Courier::FrameworkWidget](http://dev.doc.cgistudio.at/APILINK/class_courier_1_1_framework_widget.html) has also been changed:

<div class="contents" id="bkmrk-new-method-courier%3A%3A"><div class="textblock">- new method [Courier::FrameworkWidget::OnScopeMaskChanged](http://dev.doc.cgistudio.at/APILINK/class_courier_1_1_framework_widget.html#ac213bb6b25bf48a6ba0c13ef207baa6c "Notifies the parent view of changes in the scope mask.") was added also. This must be called every time the scope mask of the widgets changes ( i.e. on a CustomWidget::SetScopeMask method).

</div></div>---