13.07.2015 Views

REFERENCE GUIDE

REFERENCE GUIDE

REFERENCE GUIDE

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

wsprintf_widthprecisiontypeOutput the specified minimum number of characters. The widthfield is a nonnegative integer. The width specification nevercauses a value to be truncated; if the number of characters inthe output value is greater than the specified width, or if thewidth field is not present, all characters of the value are printed,subject to the precision specification.Output the specified minimum number of digits. If the numberof digits in the argument is less than the specified precision, theoutput value is padded on the left with zeroes. The value is nottruncated when the number of digits exceeds the specifiedprecision. If the specified precision is 0, omitted entirely, or ifthe period ( . ) appears without a number following it, theprecision is set to 1.For strings, output the specified maximum number ofcharacters.Output the corresponding argument as a character, string, or anumber. This field may be any of the following charactersequences:Sequencescd, ild, liulux,XIX,IXMeaningInsert a string argument referenced by along pointer. The argument correspondingto this sequence must be passed as a longpointer (LPSTR).Insert a single character argument. Thewsprintf function ignores characterarguments with a numerical value of zero.Insert a signed decimal integer argument.Insert a long signed decimal integerargument.Insert an unsigned integer argument.Insert a long unsigned integer argument.Insert an unsigned hexadecimal integerargument in lowercase or uppercase.Insert a long unsigned hexadecimal integerargument in lowercase or uppercase.Unlike all other Windows functions, wsprintf uses the C callingconvention (cdecl), rather than the Pascal calling convention. As a result,it is the caller's responsibility to pop arguments off the stack, andarguments are pushed in reverse order (that is, the IpOutput parameter ispushed last, to the lowest address). In C-Ianguage modules, the Ccompiler performs this task.Chapter 4, Functions directory 581

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!