Click here to Skip to main content
15,891,204 members
Home / Discussions / Mobile
   

Mobile

 
GeneralXML Parsing in CE Pin
Rassul Yunussov30-Sep-04 23:51
Rassul Yunussov30-Sep-04 23:51 
Generalpath environment variable Pin
ajaybrar28-Sep-04 17:10
ajaybrar28-Sep-04 17:10 
Generalfunctions in the Windows COM Interface that\n"); Pin
ajaybrar26-Sep-04 17:53
ajaybrar26-Sep-04 17:53 
Questionhow to get the unique device identifier(device id) of a pocket pc Pin
N.chandrasekaran24-Sep-04 20:14
N.chandrasekaran24-Sep-04 20:14 
AnswerRe: how to get the unique device identifier(device id) of a pocket pc Pin
João Paulo Figueira25-Sep-04 9:25
professionalJoão Paulo Figueira25-Sep-04 9:25 
AnswerRe: how to get the unique device identifier(device id) of a pocket pc Pin
eastsea.wu2-Dec-04 20:56
eastsea.wu2-Dec-04 20:56 
GeneralWizard support for other language in eMbedded Visual C++ 4.0 Pin
vegeakhil24-Sep-04 8:57
vegeakhil24-Sep-04 8:57 
GeneralWinCE - display transparent bitmaps Pin
JackSIL24-Sep-04 7:29
JackSIL24-Sep-04 7:29 
Confused | :confused: A question and some info...

Is it possible to write multiple bitmaps to a memDC and then 'copy' that memDC to a Device DC in order to avoid image 'flutter' or flicker?

Under Windows CE there is the ::TransparentImage function, for copying a memory DC to a Device DC with a transparent colour.

The function also accepts a bitmap handle in place of a memory DC: so there is no need to Select a bitmap into a memDC beforehand.

The following function demonstrates its use. In my project I make several calls to my function with diffent bitmap IDs to form a 'layered bitmap' image on the device DC (screen in my case).

void CWizzHMIDlg::DrawTransparentBitmapDirect( CDC *pDC, WORD BitmapID, POINT Posn, COLORREF TransparentColor)
// Copied specified bitmap, performs 'transparent copy' to specified DC - WITHOUT intermediate memory DC! WinCE only.
{
	CBitmap Bitmap;
	BITMAP BmpInfo;

	// Load the bitmap and gets its width & height
	Bitmap.LoadBitmap(BitmapID);
	Bitmap.GetBitmap(&BmpInfo);

	::TransparentImage(
			pDC->m_hDC,						  // Destination DC
			Posn.x, Posn.y,						// position of DC
			BmpInfo.bmWidth, BmpInfo.bmHeight,	 // size to copy from MemDC
			Bitmap.m_hObject,				 //  Handle of Bitmap (could be Source DC)
			0,0,								    // Position in source DC
			BmpInfo.bmWidth, BmpInfo.bmHeight,	// size is source DC
			TransparentColor);				 // Transparent color
}


I have tried various ways to copy several bitmaps on a memDC first, before copying to the device DC, but to no avail. Using a memDC parameter with TransparentImage does not appear to work more than once.

Regards & Thanks, Jack@SIL
GeneralTree View in .Net CF Pin
ppp00123-Sep-04 15:56
ppp00123-Sep-04 15:56 
GeneralThe difference between class 1 and class 2 in Bluetooth Pin
eli1502197922-Sep-04 23:08
eli1502197922-Sep-04 23:08 
GeneralConnecting WinCE to MSDE and ADO.NET Pin
..Hubert..22-Sep-04 1:34
..Hubert..22-Sep-04 1:34 
GeneralEmulator Problem Pin
mathon21-Sep-04 22:31
mathon21-Sep-04 22:31 
Generalbuilding for WinCE Pin
ajaybrar21-Sep-04 1:24
ajaybrar21-Sep-04 1:24 
GeneralPocketPC Emulator, Problems with ActiveSync Pin
Forser17-Sep-04 13:39
Forser17-Sep-04 13:39 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira18-Sep-04 4:27
professionalJoão Paulo Figueira18-Sep-04 4:27 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser18-Sep-04 6:31
Forser18-Sep-04 6:31 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira18-Sep-04 7:05
professionalJoão Paulo Figueira18-Sep-04 7:05 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira18-Sep-04 7:06
professionalJoão Paulo Figueira18-Sep-04 7:06 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser18-Sep-04 7:35
Forser18-Sep-04 7:35 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira18-Sep-04 7:41
professionalJoão Paulo Figueira18-Sep-04 7:41 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser18-Sep-04 7:43
Forser18-Sep-04 7:43 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser18-Sep-04 7:46
Forser18-Sep-04 7:46 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira18-Sep-04 7:50
professionalJoão Paulo Figueira18-Sep-04 7:50 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
Forser18-Sep-04 7:52
Forser18-Sep-04 7:52 
GeneralRe: PocketPC Emulator, Problems with ActiveSync Pin
João Paulo Figueira18-Sep-04 8:00
professionalJoão Paulo Figueira18-Sep-04 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.