For example, see below code to know how to use BitBlt:
void CButton3D::PaintBkInternal(CDC *pDC)
{
CRect rect;
GetClientRect(rect);
if ( m_dcBk.m_hDC == NULL)
{
CDC bitmapDC;
bitmapDC.CreateCompatibleDC( pDC);
m_pbmpOldBk = bitmapDC.SelectObject( &m_bmpBk);
for ( int i = rect.left...
You can use ShellExecute, but don't pass directly name of file that you want to open as parameter for ShellExecute. Instead of that, use the following string:
C:\WINDOWS\rundll32.exe shell32.dll,OpenAs_RunDLL FILENAME
You type name of file that you want to open in place of FILENAME in above...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.