A partition wall (T) for forming a fire compartment in rooms of buildings, with • a ceiling connection element and at least one wall connection element , preferably for fire protection and/or smoke protection purposes, and • at least one single wall element (EW1, EW2, EW3), namely a door or a window, with a door leaf or window leaf, for closing an opening, preferably for fire protection purposes and/or smoke protection purposes, which has at least two single elements arranged horizontally and/or vertically aligned next to one another, wherein - at least one single element of the at least two single elements is a glass pane , preferably a fire-resistant pane , - at least one single element of the at least two single elements is a non-combustible building material panel and/or a fire-resistant wooden element , and - the single elements are connected to each other flush and with a positive fit, wherein, in the closed state of the door or window, the side surfaces (SF) of the at least one wall connection element and the side surfaces (SF) of the at least one door leaf or window leaf extend flush in one plane, characterised in that the exposed joint surface (S) of the ceiling connection element connecting the side edges of the side surfaces (SF) of the ceiling connection element has or forms a stepped rebate, wherein the stepped rebate of the ceiling connection element and at least one stepped rebate of the door leaf or window leaf are designed to correspond to one another in such a way that the stepped rebate of the ceiling connection element provides a stop for the door leaf or window leaf, in which the side surfaces (SF) of the ceiling connection element are flush with the side surfaces (SF) of the door leaf or window leaf. • a ceiling connection element and at least one wall connection element , preferably for fire protection and/or smoke protection purposes, and • at least one single wall element (EW1, EW2, EW3), namely a door or a window, with a door leaf or window leaf, for closing an opening, preferably for fire protection purposes and/or smoke protection purposes, which has at least two single elements arranged horizontally and/or vertically aligned next to one another, wherein - at least one single element of the at least two single elements is a glass pane , preferably a fire-resistant pane , - at least one single element of the at least two single elements is a non-combustible building material panel and/or a fire-resistant wooden element , and - the single elements are connected to each other flush and with a positive fit, - at least one single element of the at least two single elements is a glass pane , preferably a fire-resistant pane , - at least one single element of the at least two single elements is a non-combustible building material panel and/or a fire-resistant wooden element , and - the single elements are connected to each other flush and with a positive fit, wherein, in the closed state of the door or window, the side surfaces (SF) of the at least one wall connection element and the side surfaces (SF) of the at least one door leaf or window leaf extend flush in one plane, characterised in that the exposed joint surface (S) of the ceiling connection element connecting the side edges of the side surfaces (SF) of the ceiling connection element has or forms a stepped rebate, wherein the stepped rebate of the ceiling connection element and at least one stepped rebate of the door leaf or window leaf are designed to correspond to one another in such a way that the stepped rebate of the ceiling connection element provides a stop for the door leaf or window leaf, in which the side surfaces (SF) of the ceiling connection element are flush with the side surfaces (SF) of the door leaf or window leaf. <EOS>