Changeset 29040

Show
Ignore:
Timestamp:
01/26/09 11:59:41 (4 years ago)
Author:
isaisstillalive
Message:
  • wm_commandもwm_notifyと同様に、分解済みの値を子コントロールに渡すようにした。
Location:
lang/ruby/ruwin
Files:
4 modified

Legend:

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

    r28845 r29040  
    44      include Const::Button 
    55       
    6       def wm_command msg 
    7         wNotifyCode = HIWORD(msg.wParam) 
    8          
     6      def wm_command msg, wID, wNotifyCode, hwndControl 
    97        case wNotifyCode 
    108        when BN_CLICKED 
  • lang/ruby/ruwin/lib/ruwin/edit_field.rb

    r28995 r29040  
    8484       
    8585       
    86       def wm_command msg 
    87         wNotifyCode = HIWORD(msg.wParam) 
     86      def wm_command msg, wID, wNotifyCode, hwndControl 
    8887        case wNotifyCode 
    8988        when EN_UPDATE 
  • lang/ruby/ruwin/test/ruwin/test_button.rb

    r28834 r29040  
    2525    klass = Class.new(Ruwin::Button) 
    2626    instance = klass.new(Ruwin::Window.new) 
    27     msg = DummyMSG.new nil, nil, BN_CLICKED<<16 
    28     assert_equal :clicked, instance.wm_command(msg) 
     27    msg = DummyMSG.new nil, nil, nil 
     28    assert_equal :clicked, instance.wm_command(msg, nil, BN_CLICKED, nil) 
    2929  end 
    3030end 
  • lang/ruby/ruwin/test/ruwin/testm_edit_field.rb

    r29000 r29040  
    186186   
    187187  def test_wm_command_updated 
    188     msg = DummyMSG.new nil, nil, EN_UPDATE<<16 
    189     assert_equal :updated, @control.wm_command(msg) 
     188    msg = DummyMSG.new nil, nil, nil 
     189    assert_equal :updated, @control.wm_command(msg, nil, EN_UPDATE, nil) 
    190190  end 
    191191end