Class: Stench::WinBase::WNDCLASSEX
- Inherits:
-
FFI::Struct
- Object
- FFI::Struct
- Stench::WinBase::WNDCLASSEX
- Defined in:
- lib/stench.rb
Instance Method Summary collapse
- #atom ⇒ Object
-
#initialize(*args) ⇒ WNDCLASSEX
constructor
A new instance of WNDCLASSEX.
- #register_class_ex ⇒ Object
Constructor Details
#initialize(*args) ⇒ WNDCLASSEX
Returns a new instance of WNDCLASSEX.
60 61 62 63 64 |
# File 'lib/stench.rb', line 60 def initialize(*args) super self[:cbSize] = self.size @atom = 0 end |
Instance Method Details
#atom ⇒ Object
70 71 72 |
# File 'lib/stench.rb', line 70 def atom @atom != 0 ? @atom : register_class_ex end |
#register_class_ex ⇒ Object
66 67 68 |
# File 'lib/stench.rb', line 66 def register_class_ex (@atom = WinBase::RegisterClassEx(self)) != 0 ? @atom : raise("RegisterClassEx Error") end |