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