2008-10-14 2 views

Répondre

2
public static ushort LowWord(uint val) 
{ 
    return (ushort)val; 
} 

public static ushort HighWord(uint val) 
{ 
    return (ushort)(val >> 16); 
} 

public static uint BuildWParam(ushort low, ushort high) 
{ 
    return ((uint)high << 16) | (uint)low; 
} 
+0

Ah - merci. uint BuildWParam (ushort faible, ushort élevé) {return ((uint) low << 16) | (uint) haut; } – plinth

Questions connexes