Changeset 29041
- Timestamp:
- 01/26/09 12:06:26 (4 years ago)
- Location:
- lang/ruby/ruwin
- Files:
-
- 2 modified
-
lib/ruwin/window.rb (modified) (1 diff)
-
test/ruwin/test_window.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/ruby/ruwin/lib/ruwin/window.rb
r29017 r29041 80 80 name, control = @controls[hwndControl] 81 81 return unless control.respond_to? :wm_command 82 event, *args = control.wm_command msg 82 event, *args = control.wm_command msg, wID, wNotifyCode, hwndControl 83 83 return unless event 84 84 -
lang/ruby/ruwin/test/ruwin/test_window.rb
r29017 r29041 185 185 add_control Ruwin::Control, "button" do 186 186 attr_reader :wm_command_msg 187 def wm_command msg188 @wm_command_msg = msg187 def wm_command *args 188 @wm_command_msg = args 189 189 return :updated, 0, 1, 2 190 190 end … … 198 198 instance = klass.new 199 199 200 msg = DummyMSG.new nil, WM_COMMAND, 1 , instance.button.hWnd200 msg = DummyMSG.new nil, WM_COMMAND, 1|2<<16, instance.button.hWnd 201 201 instance.wm_command msg 202 assert_equal msg, instance.button.wm_command_msg202 assert_equal [msg, 1, 2, instance.button.hWnd], instance.button.wm_command_msg 203 203 assert_equal [0, 1, 2], instance.button_updated_called 204 204 end
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)