Casio IT-2000W Especificaciones Pagina 211

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 297
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 210
211
Example of expansion pad operation
Registration of expansion key pad
<In case of VC>
void Cclass::SetProp( void )
{
HBITMAP hBmp;
PIC pic;
HPIC hPic;
// Loads the bitmap from resouce
hBmp = LoadBitmap( AfxGetInstanceHandle(), "bitmap resource name");
pic.picData.bmp.hbitmap = hBmp;
pic.picType = PICTYPE_BITMAP;
hPic = AfxSetPict( NULL, &pic ); // Creates HPIC.
m_PadCtrl->SetPictureProperty("Ext1Data1",hPic);
// Registration of picture property
AfxReferencePict( hPic, TRUE ); // Reference count operation of HPIC
m_PadCtrl->SetNumProperty( "KeyNo",0 );
// Registration of Key No. (0-47)
m_PadCtrl->SetNumProperty( "ExtNo", 1 );
// Registration of expansion pad No. (1-2)
m_PadCtrl->SetNumProperty( "KeyCode", 65 );
// Registration of keycode
m_PadCtrl->SetNumProperty( "ExtPad", 1 );
}
<In case of VB>
Private Sub Command1_Click()
Padctrl1. KeyNo = 0
Padctrl1. ExtNo = 1
Padctrl1. Ext1Data1 = LoadPicture("d: work ocx zen.bmp")
Padctrl1. KeyCode = 65
Padctrl1. ExtPad = 1
End Sub
Vista de pagina 210
1 2 ... 206 207 208 209 210 211 212 213 214 215 216 ... 296 297

Comentarios a estos manuales

Sin comentarios