本文整理汇总了C++中WM函数的典型用法代码示例。如果您正苦于以下问题:C++ WM函数的具体用法?C++ WM怎么用?C++ WM使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了WM函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: SetVideoPosScrollRangeByVideoLen
void VLCControlsWnd::UpdateButtons()
{
if(hVideoPosScroll){
SetVideoPosScrollRangeByVideoLen();
SyncVideoPosScrollPosWithVideoPos();
}
if(hVolumeSlider){
SyncVolumeSliderWithVLCVolume();
}
if(hFSButton) {
HANDLE hFSBitmap =
WM().IsFullScreen() ? RC().hDeFullscreenBitmap :
RC().hFullscreenBitmap;
HANDLE hBitmap =
(HANDLE)SendMessage(hFSButton, BM_GETIMAGE, (WPARAM)IMAGE_BITMAP, 0);
if( WM().getNewMessageFlag() &&
(hBitmap == RC().hDeFullscreenBitmap ||
hBitmap == RC().hFullscreenBitmap) )
{
SendMessage(hFSButton, BM_SETIMAGE,
(WPARAM)IMAGE_BITMAP,
(LPARAM)RC().hNewMessageBitmap);
//do not allow control window to close while there are new messages
NeedShowControls();
}
else{
if(hBitmap != hFSBitmap)
SendMessage(hFSButton, BM_SETIMAGE,
(WPARAM)IMAGE_BITMAP,
(LPARAM)hFSBitmap);
}
}
if(hPlayPauseButton){
HANDLE hBmp = IsPlaying() ? RC().hPauseBitmap : RC().hPlayBitmap;
SendMessage(hPlayPauseButton, BM_SETIMAGE,
(WPARAM)IMAGE_BITMAP, (LPARAM)hBmp);
}
}
示例2: lsr_ex
/* $74 LSR extended -0*-* */
INLINE void lsr_ex( void )
{
UINT8 t;
EXTBYTE(t);
CLR_NZC;
CC|=(t&0x01);
t>>=1;
SET_Z8(t);
WM(EAD,t);
}
示例3: stx_nsc
// $b2 - assuming correct, store first byte to (X + $disp8)
INLINE void stx_nsc( void )
{
UINT8 val;
IMM8;
val = RM(EAD);
IMM8;
EA = X + RM(EAD);
CLR_NZV;
SET_NZ8(val);
WM(EAD,val);
}
示例4: lsr_ex
/* $74 LSR extended -0*-* */
INLINE void lsr_ex( void )
{
UINT8 t;
EXTBYTE(t);
CLR_NZVC;
CC|=(t&0x01);
t>>=1;
SET_Z8(t);
if (NXORC) SEV;
WM(EAD,t);
}
示例5: wm_steal
/*
* Modifies a WM by stealing from one letter and given to another at each position
*/
void wm_steal(Annealing *search, int wm_index, float temperature) {
unsigned int pos, thief, victim;
unsigned int amount, i, nind, wind;
PSSM wm, nwm;
wm = WM(wm_index);
nwm = NWM(wm_index);
SWITCH_WM(wm_index);
wm = WM(wm_index);
nwm = NWM(wm_index);
wm->length = nwm->length;
pos = wm->length;
while (pos--) {
/* Steal from one letter, and add to another */
victim = RAND_INT(nwm->alphabetSize);
while ( nwm->counts[ WM_IND(nwm, pos, victim) ] == 0) victim = RAND_INT(4.0);
thief = RAND_INT(nwm->alphabetSize - 1);
if (thief >= victim) thief++;
amount = STEAL_AMOUNT;
i = ALPHLEN;
while (i--) {
nind = WM_IND(nwm, pos, i);
wind = WM_IND(wm, pos, i);
wm->counts[wind] = nwm->counts[nind];
if (i == thief)
wm->counts[wind] += amount;
else if(i == victim)
wm->counts[wind] -= amount;
wm->scores[wind] = logtable[wm->counts[wind]];
}
}
}
示例6: movp_i2p
static void movp_i2p( void )
{
UINT8 i,v;
IMMBYTE(i);
IMMBYTE(v);
WM( 0x0100+v, i);
CLR_NZC;
SET_N8(i);
SET_Z8(i);
tms7000_icount -= 11;
}
示例7: xorp_a2p
static void xorp_a2p( void )
{
UINT8 t;
UINT8 v;
IMMBYTE(v);
t = RDA ^ RM( 0x0100 + v);
WM( 0x0100+v, t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 10;
}
示例8: pop_r
static void pop_r( void )
{
UINT16 t;
UINT8 r;
IMMBYTE(r);
PULLBYTE(t);
WM(r,t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 8;
}
示例9: movp_b2p
static void movp_b2p( void )
{
UINT8 p;
UINT16 t;
IMMBYTE(p);
t=RDB;
WM( 0x0100+p,t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 10;
}
示例10: mov_i2r
static void mov_i2r( void )
{
UINT16 t;
UINT8 r;
IMMBYTE(t);
IMMBYTE(r);
WM(r,t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 9;
}
示例11: sta_inx
static void sta_inx( void )
{
UINT16 t;
PAIR i;
IMMWORD( i );
t = RDA;
WM(i.w.l+RDB,t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 13;
}
示例12: andp_b2p
static void andp_b2p( void )
{
UINT8 t;
UINT8 v;
IMMBYTE(v);
t = RDB & RM( 0x0100 + v);
WM( 0x0100+v, t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 9;
}
示例13: movp_r2p
/* this appears to be unused */
static void movp_r2p( void )
{
UINT8 p,r;
UINT16 t;
IMMBYTE(r);
IMMBYTE(p);
t=RM(r);
WM( 0x0100+p,t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 11;
}
示例14: mov_r2r
static void mov_r2r( void )
{
UINT8 r,s;
UINT16 t;
IMMBYTE(r);
IMMBYTE(s);
t = RM(r);
WM(s,t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 10;
}
示例15: sta_dir
static void sta_dir( void )
{
UINT16 t;
PAIR i;
t = RDA;
IMMWORD( i );
WM(i.w.l,t);
CLR_NZC;
SET_N8(t);
SET_Z8(t);
tms7000_icount -= 11;
}