Click here to Skip to main content
15,909,039 members
Home / Discussions / Mobile
   

Mobile

 
AnswerRe: VB.Net Compact - Reposition form on SID enabled event Pin
wizardcode14-Nov-07 2:48
wizardcode14-Nov-07 2:48 
QuestionPlatform builder Pin
subosubo1-Nov-07 18:52
subosubo1-Nov-07 18:52 
QuestionReg Exp Library for Mobile 6 Pin
Jnewg51-Nov-07 12:53
Jnewg51-Nov-07 12:53 
QuestionPocketPC - how do you work these again? Pin
john john mackey1-Nov-07 12:18
john john mackey1-Nov-07 12:18 
AnswerRe: PocketPC - how do you work these again? Pin
João Paulo Figueira6-Nov-07 21:51
professionalJoão Paulo Figueira6-Nov-07 21:51 
GeneralRe: PocketPC - how do you work these again? Pin
john john mackey13-Nov-07 14:43
john john mackey13-Nov-07 14:43 
QuestionJava and netBeans question? Pin
Benny_Lava1-Nov-07 6:05
Benny_Lava1-Nov-07 6:05 
QuestionHow to enlarge an existing bitmap on a VGA device? S.O.S Pin
ttarantula31-Oct-07 23:08
ttarantula31-Oct-07 23:08 
hi,

1.My QVGA device can display bitmaps perfectly alright.
However, when displaying the same bitmaps on a VGA(480x640) device the bitmaps
seem to appear only half the size seen on my QVGA(240x320) device screen.
Can someone advise me how do I enlarge those bitmaps accordingly
on my VGA device?
I would greatly appreciate if your advice can help me.

Here are bits of the code I have written:

-extract from a *.cpp file:

LRESULT CSIPMainWindow::OnPaint(UINT uMsg, WPARAM wParam, LPARAM lParam, BOOL& bHandled)
{
CPaintDC paintDC(*this);
WTL::CDCHandle renderingDC(paintDC);

CDC memDC;
CBitmap memBitmap;
HBITMAP oldBitmap = 0;

RECT rect;
GetClientRect(&rect);

memDC.CreateCompatibleDC(paintDC);
if (! memDC.IsNull())
{
memBitmap.CreateCompatibleBitmap(paintDC,rect.right-rect.left,rect.bottom-rect.top);
if (! memBitmap.IsNull())
{
oldBitmap = memDC.SelectBitmap(memBitmap);
renderingDC = memDC;
}
}

int iBmpID;
if (m_pCurrentIMWnd == m_paInputMethodWnd[2])
{
iBmpID = IDB_BITMAP_SYMBOLS;
} else
{
if(m_bIsCapMode == true && m_bIsPredMode == true)
{
iBmpID = IDB_BITMAP_T9P_CAP;
}
if(m_bIsCapMode == true && m_bIsPredMode == false)
{
iBmpID = IDB_BITMAP_T9M_CAP;
}
if(m_bIsCapMode == false && m_bIsPredMode == true)
{
iBmpID = IDB_BITMAP_T9P;
}
if(m_bIsCapMode == false && m_bIsPredMode == false)
{
iBmpID = IDB_BITMAP_T9M;
}
}

int iLogox, iLogoy,iBmpX, iBmpY;
iLogox= k_iDallabLogoX;
iLogoy= k_iDallabLogoY;
iBmpX = k_iIMBmpX;
iBmpY = k_iIMBmpY;

DrawSingleBitmap(renderingDC,IDB_BITMAP_DALLABLOGO,iLogox,iLogoy);
DrawSingleBitmap(renderingDC,iBmpID,iBmpX,iBmpY);

if (static_cast<HDC>(renderingDC) == static_cast<HDC>(memDC))
{
//paintDC.BitBlt(0, 0, rect.right-rect.left, rect.bottom-rect.top,renderingDC, 0, 0,SRCCOPY);

paintDC.StretchBlt(0, 0, rect.right-rect.left, rect.bottom-rect.top,renderingDC, 0, 0,rect.right-rect.left, rect.bottom-rect.top,SRCCOPY);

memDC.SelectBitmap(oldBitmap);
}
return 0;
}

- extract from a *.h file:
const RECT g_rectScreenArea = {0,250,240,294};//OK
const RECT g_rectScreenAreaHorizontal = {0,170,320,214};//OK
const RECT g_rectClientArea = {0,0,240,44};//OK
const RECT g_rectClientAreaHorizontal = {40,0,280,44};//OK
//left,top,right,bottom//
const RECT g_vgarectScreenArea = {0,500,480,600}; //ok but must make it double the size
const RECT g_vgarectScreenAreaHorizontal ={0,340,640,430);//ok but size must be double
const RECT g_vgarectClientArea = {58,0,480,44}; //ok but must make it double the size
const RECT g_vgarectClientAreaHorizontal = {58,0,580,44};//ok but size must be double

2.Also, I have switched from the BitBlt function to StretchBlt function but it doesn't seem to help. S.O.S

Denise
AnswerRe: How to enlarge an existing bitmap on a VGA device? S.O.S Pin
Alain Rist1-Nov-07 8:31
Alain Rist1-Nov-07 8:31 
GeneralRe: How to enlarge an existing bitmap on a VGA device? S.O.S!!! Pin
ttarantula19-Nov-07 19:43
ttarantula19-Nov-07 19:43 
QuestionRe: How to enlarge an existing bitmap on a VGA device? S.O.S!!! Pin
Alain Rist19-Nov-07 20:36
Alain Rist19-Nov-07 20:36 
AnswerRe: How to enlarge an existing bitmap on a VGA device? S.O.S!!! Pin
ttarantula19-Nov-07 20:58
ttarantula19-Nov-07 20:58 
GeneralRe: How to enlarge an existing bitmap on a VGA device? S.O.S!!! Pin
Alain Rist19-Nov-07 21:25
Alain Rist19-Nov-07 21:25 
QuestionRe: How to enlarge an existing bitmap on a VGA device? S.O.S!!! Pin
ttarantula19-Nov-07 22:23
ttarantula19-Nov-07 22:23 
QuestionObject Store DBs on Windows CE Pin
ohart31-Oct-07 6:36
ohart31-Oct-07 6:36 
QuestionArabic pocket pc Pin
SVb.net31-Oct-07 5:31
SVb.net31-Oct-07 5:31 
Questionproblem in connecting PACKET PC 2003 with our local server Pin
D.Madhav29-Oct-07 21:45
D.Madhav29-Oct-07 21:45 
Questionmobile and C# Pin
phuong oanh29-Oct-07 14:02
phuong oanh29-Oct-07 14:02 
Questionsql server connection from wml, asp.net Pin
gottimukkala29-Oct-07 7:02
gottimukkala29-Oct-07 7:02 
Questionaspx for wml Pin
gottimukkala29-Oct-07 6:57
gottimukkala29-Oct-07 6:57 
QuestionUsing SqlCeEngine class in Windows application Pin
Ferudun Atakan28-Oct-07 7:56
Ferudun Atakan28-Oct-07 7:56 
AnswerRe: Using SqlCeEngine class in Windows application Pin
Scott Dorman28-Oct-07 9:26
professionalScott Dorman28-Oct-07 9:26 
QuestionAbout .Net Mobile Application Pin
i gr826-Oct-07 1:19
i gr826-Oct-07 1:19 
AnswerRe: About .Net Mobile Application Pin
DigiOz Multimedia27-Oct-07 5:37
DigiOz Multimedia27-Oct-07 5:37 
QuestionCombobox keypress Pin
Yoyosch22-Oct-07 3:25
Yoyosch22-Oct-07 3:25 

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.