Definition at line 392 of file CxCheckBoxDrum.h. References CheckBox3D::GetSelected(), HandleCategory(), mDrumRotX, mPicking, mWheelStep, PickDrawFunc(), and CheckBox3D::SetSelected(). 00393 { 00394 if( msg == oglMouseDown && msg == oglLeftButton ) 00395 { 00396 mPicking = true; 00397 int picked = (int) oglSys.StdPickObject( mOglWnd, (FLOAT) x, (FLOAT) y, 00398 4.0f, 300.0f, PickDrawFunc, NULL, NULL ); 00399 mPicking = false; 00400 if( picked ){ 00401 CheckBox3D* cB = (CheckBox3D *) picked; 00402 cB->SetSelected( !cB->GetSelected() ); 00403 HandleCategory( cB ); 00404 } 00405 } 00406 if (msg == oglMouseWheelUp || msg == oglMouseWheelDown) 00407 { 00408 float delta = ((msg == oglMouseWheelUp) ? -mWheelStep : mWheelStep); 00409 delta *= ((state & oglControl) ? 2 : 1); 00410 mDrumRotX += delta; 00411 } 00412 else 00413 CxWnd::MouseFunc(msg, but, state, x, y); 00414 }
Here is the call graph for this function:
|