Menu

#176 TDC::TStateGuard to restore GDI state at end of scope

unspecified
pending
nobody
1
2026-03-27
2021-04-15
No

It is possible to use a TDC alias as an improvised state guard, but it would be better to have a dedicated state guard, that simply calls TDC::SaveDC in the constructor and TDC::RestoreDC in the destructor.

See "Selecting and restoring GDI objects in TDC".

Related

Discussion: Selecting and restoring objects in TDC
Feature Requests: #178
Wiki: Selecting_and_restoring_objects_in_TDC

Discussion

  • Vidar Hasfjord

    Vidar Hasfjord - 2021-04-15
    • status: open --> pending
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2021-04-15

    This feature was implemented in Owlet in [r5449].

     

    Related

    Commit: [r5449]

  • Vidar Hasfjord

    Vidar Hasfjord - 2026-03-27
    • Group: Owlet --> unspecified
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2026-03-27
    • Labels: GDI, API --> GDI, API, Owlet
     
  • Vidar Hasfjord

    Vidar Hasfjord - 2026-03-27
    • assigned_to: Vidar Hasfjord --> nobody
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB