Click here to Skip to main content
15,904,023 members
Home / Discussions / Mobile
   

Mobile

 
GeneralWriting new language for PPC ! Pin
Hadi Rezaee15-Jun-04 11:40
Hadi Rezaee15-Jun-04 11:40 
GeneralRe: Writing new language for PPC ! Pin
João Paulo Figueira15-Jun-04 22:00
professionalJoão Paulo Figueira15-Jun-04 22:00 
GeneralRe: Writing new language for PPC ! Pin
Hadi Rezaee17-Jun-04 6:38
Hadi Rezaee17-Jun-04 6:38 
GeneralMobile Application Pin
Masood Lodhi15-Jun-04 10:21
Masood Lodhi15-Jun-04 10:21 
GeneralappDoman and dynamic loading in .net CF Pin
ppp00115-Jun-04 8:17
ppp00115-Jun-04 8:17 
GeneralZone Colour Filling - Drawing Pin
coding-nastypcs15-Jun-04 2:01
coding-nastypcs15-Jun-04 2:01 
GeneralRe: Zone Colour Filling - Drawing Pin
João Paulo Figueira15-Jun-04 11:30
professionalJoão Paulo Figueira15-Jun-04 11:30 
GeneralRe: Zone Colour Filling - Drawing Pin
coding-nastypcs16-Jun-04 2:20
coding-nastypcs16-Jun-04 2:20 
Thanks João,

I have since added the class to my project but have run into a little problem.

My project has 2 CDC's, one is in the main View class and the other I use in my Zoning Class.
When I draw my zone I draw the zone on both CDC's but the second CDC in the Zoning Class will get filled in.
I then use this CDC as a hidden CDC to check if I'm still in a zone, using the likes of GetPixel() to find out if I have left the zone.

My problem now is that it's always returning true, as in I have left the zone, so I now need to display the second CDC to the screen to verify that the zone has been set up right, but when I do I just get a blank display, all white.

I'm using code like the following...

<br />
ColorZone = new CDC();<br />
ColorZone->CreateCompatibleDC(NULL);<br />
int numPoints = Points.GetSize();<br />
<br />
if(numPoints>1)<br />
{<br />
    for(int i=0;i<numPoints-1;i++)<br />
    {	// draw outling<br />
        ColorZone->MoveTo(Points.GetAt(i).x,    Points.GetAt(i).y  );<br />
        ColorZone->LineTo(Points.GetAt(i+1).x*, Points.GetAt(i+1).y);<br />
    }<br />
		<br />
    if(CZone::IsComplete)<br />
    {   //fill in zone<br />
        CPoint point = Points.GetAt(0);<br />
        point.x+=1; // just added to move off outline border, fix later on<br />
        point.y+=1;<br />
        CRect		rect;<br />
        GetClientRect(NULL, &rect);<br />
        CFloodFill<CDC, COLORREF>	flood(*pDC, rect);<br />
        flood.Fill(point, RGB(255, 0, 0));<br />
        <br />
        // display on main CDC - debugging only<br />
        CMyBaseView* pView = (CMyBaseView*)((CMainFrame*)AfxGetApp()->m_pMainWnd)->GetActiveFrame()->GetActiveView();<br />
        pView->GetDocument()->mapDC = ColorZone;<br />
    }<br />
}<br />


As I'm very new to PocketPC development I'm a little unsure if the above code should do what it's meant to be doing, any input would be grateful!

Thanks again,
ar
Generalserios help needed! Pin
imzy15-Jun-04 0:59
imzy15-Jun-04 0:59 
GeneralVirtual Com Port (C++) Pin
_Tom_14-Jun-04 23:25
_Tom_14-Jun-04 23:25 
Generaldumb question Pin
Anonymous14-Jun-04 15:13
Anonymous14-Jun-04 15:13 
GeneralRe: dumb question Pin
axid3j1al14-Jun-04 17:04
axid3j1al14-Jun-04 17:04 
QuestionHw do I setup a direct pc2pc connection on COM port ?? Pin
glweid14-Jun-04 5:08
glweid14-Jun-04 5:08 
GeneralProblem when using Cursor type and locktype in OLEDB/SQL Server CE Pin
AKSIVAKUMAR14-Jun-04 2:40
AKSIVAKUMAR14-Jun-04 2:40 
GeneralRe: Problem when using Cursor type and locktype in OLEDB/SQL Server CE Pin
João Paulo Figueira14-Jun-04 23:01
professionalJoão Paulo Figueira14-Jun-04 23:01 
GeneralPPC 2003 Emulator &amp; ActiveSync Pin
Hadi Rezaee14-Jun-04 0:40
Hadi Rezaee14-Jun-04 0:40 
GeneralRe: PPC 2003 Emulator &amp; ActiveSync Pin
João Paulo Figueira14-Jun-04 22:59
professionalJoão Paulo Figueira14-Jun-04 22:59 
GeneralRe: PPC 2003 Emulator &amp; ActiveSync Pin
Hadi Rezaee15-Jun-04 2:45
Hadi Rezaee15-Jun-04 2:45 
GeneralRe: PPC 2003 Emulator &amp; ActiveSync Pin
ting66816-Jun-04 0:35
ting66816-Jun-04 0:35 
Generalis it easy to migrate from 8bit controllers to 16bit and 16 to 32 bit and so on Pin
NewtonOfComputers13-Jun-04 21:23
NewtonOfComputers13-Jun-04 21:23 
GeneralCross platform GUI Pin
NewtonOfComputers13-Jun-04 21:19
NewtonOfComputers13-Jun-04 21:19 
GeneralRe: Cross platform GUI Pin
Henry miller15-Jun-04 8:41
Henry miller15-Jun-04 8:41 
GeneralOnoard C# programming Pin
Vitaliy Pronkin12-Jun-04 9:01
Vitaliy Pronkin12-Jun-04 9:01 
Generalopening mobile Pin
emysola11-Jun-04 20:27
emysola11-Jun-04 20:27 
Generalincremental installation of C# applications Pin
ting66810-Jun-04 16:25
ting66810-Jun-04 16: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.