Esempio n. 1
0
 protected override bool ReleaseHandle()
 {
     SafeSelectObjectHandle.SelectObject(this.hdc.DangerousGetHandle(), this.handle);
     return(true);
 }
Esempio n. 2
0
 public SafeSelectObjectHandle(SafeDCHandle hdc, SafeHandle newHandle)
     : base(true)
 {
     this.hdc = hdc;
     base.SetHandle(SafeSelectObjectHandle.SelectObject(hdc.DangerousGetHandle(), newHandle.DangerousGetHandle()));
 }