当前位置: 首页>>代码示例>>C++>>正文


C++ WM函数代码示例

本文整理汇总了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);
    }

}
开发者ID:FranEstSol,项目名称:vc-axnp-vlc,代码行数:44,代码来源:win32_fullscreen.cpp

示例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);
}
开发者ID:cdrr,项目名称:MAME_hack,代码行数:11,代码来源:6800ops.c

示例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);
}
开发者ID:CarnyPriest,项目名称:SAMbuild,代码行数:12,代码来源:6800ops.c

示例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);
}
开发者ID:CarnyPriest,项目名称:SAMbuild,代码行数:12,代码来源:6800ops.c

示例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]];
    }
  }
}
开发者ID:verdurin,项目名称:gimmemotifs,代码行数:41,代码来源:anneal.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:14,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:15,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:15,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:15,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:15,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:15,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:15,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:17,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:16,代码来源:tms70op.c

示例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;
}
开发者ID:broftkd,项目名称:historic-mame,代码行数:16,代码来源:tms70op.c


注:本文中的WM函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。