Changeset 29041

Show
Ignore:
Timestamp:
01/26/09 12:06:26 (5 years ago)
Author:
isaisstillalive
Message:
  • r29040 コントロールしか変更してなかった。
Location:
lang/ruby/ruwin
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lang/ruby/ruwin/lib/ruwin/window.rb

    r29017 r29041  
    8080      name, control = @controls[hwndControl] 
    8181      return unless control.respond_to? :wm_command 
    82       event, *args = control.wm_command msg 
     82      event, *args = control.wm_command msg, wID, wNotifyCode, hwndControl 
    8383      return unless event 
    8484       
  • lang/ruby/ruwin/test/ruwin/test_window.rb

    r29017 r29041  
    185185      add_control Ruwin::Control, "button" do 
    186186        attr_reader :wm_command_msg 
    187         def wm_command msg 
    188           @wm_command_msg = msg 
     187        def wm_command *args 
     188          @wm_command_msg = args 
    189189          return :updated, 0, 1, 2 
    190190        end 
     
    198198    instance = klass.new 
    199199     
    200     msg = DummyMSG.new nil, WM_COMMAND, 1, instance.button.hWnd 
     200    msg = DummyMSG.new nil, WM_COMMAND, 1|2<<16, instance.button.hWnd 
    201201    instance.wm_command msg 
    202     assert_equal msg, instance.button.wm_command_msg 
     202    assert_equal [msg, 1, 2, instance.button.hWnd], instance.button.wm_command_msg 
    203203    assert_equal [0, 1, 2], instance.button_updated_called 
    204204  end