Click to open or copy the Card project files.
Click to open or copy the Include project files (required).
This sample ActiveX Control implements a standard playing card, with the ability to show the standard 52 card deck, 2 jokers, and 13 different card backs. This control is a Windowless control, which uses transparency to create the missing card corner effect.
This sample demonstrates the following keywords:
addref; bitblt; cardborder; cardcachemem; ccardcontrol; ccarddraw; ccardgeneralpage; centerborder; check_pointer; checkdlgbutton; checklicensekey; cocreateinstance; colecontrol; controlobject; cpropertypage; createcompatiblebitmap; createcompatibledc; createcomponentcategory; createdibcard; createdibsection; createrectrgn; createsolidbrush; declare_standard_dispatch; declare_standard_supporterrorinfo; declare_standard_unknown; define_guid; define_propertypageobject; define_windowlesscontrolobject; deletecriticalsection; deletedc; deleteobject; dialogproc; do_guids_match; drawback; drawcardback; drawme; entercriticalsection; failed; fillrect; fireevent; firstcontrol; freedc; get_cardalignment; get_invert; get_number; get_suite; getambientproperty; getdlgitem; getdlgitemtext; getlicensekey; getresourcehandle; getstockobject; hiword; hiword; initializecriticalsection; internalqueryinterface; invalidatecontrol; isdlgbuttonchecked; leavecriticalsection; load; loadbinarystate; loadbitmap; loadcursor; loadtextstate; loword; lparam; lptodp; makedirty; makeintresource; makelcid; makepoints; memcpy; memset; messagebox; modaldialog; nextcontrol; ocxdefwindowproc; ocxgetwindowrect; ocxinvalidaterect; oletranslatecolor; ondraw; polyline; privateunknown; propertychanged; propertypage; proppageexception; put_cardalignment; put_invert; put_number; put_suite; queryinterface; registercategories; registerclass; registerclassdata; registerclassimplcategories; registerclsidincategory; registerdata; release; restoredc; return_on_failure; rgb; savebinarystate; savedc; savetextstate; selectcliprgn; selectobject; sendmessage; setcontrolsize; setdropdown; setmapmode; setpixelv; settextcolor; setviewportorgex; setwindoworgex; simpleatoi; stdmethod; stdmethod_; stretchblt; succeeded; switch; symbitblt; symbitbltbottom; symbitbltbottomnotransx; symbitblttop; unregisterclassimplcategories; unregisterclsidincategory; validatecardalignment; validatenumber; validatesuite; variantclear; variantinit; warning; wcslen; wcsncpy; windowless; windowproc; wndclassnameofcontrol