Home
   Home  |  Preliminary Docs  |  Design Diagrams  |  Reference  |  Development Docs  |  Download  |  Source Code  |  Final Reports  |
ISolpackApp::CardHeight Property

Retrieves the height of a card, in pixels.

Syntax:

HRESULT get_CardHeight(
   long *p
);

Parameters:

p
Address of a long integer variable that receives the height, in pixels.

Return Value:

Returns S_OK if successful, or an error value otherwise.

Remarks:

The default Solitaire Pack card is 96 pixels high. Game objects should retrieve this value to determine what size card Solitaire Pack is using, in order to determine pile layout.

If the user changes the card set to different-sized cards, Solpack will call the game's ISolpackGame::RecalcLayout method.

  February 24, 2002 jmhoersc@mtu.edu