|
Hi out there,
I'm looking for a way to create a transparent CBrush under WinCE so I can draw a polygon filled with lines. The background of the polygon have to be visible. I tried some things but nothing I've tried had a transparent background.
Thanx for help
\SOLMAN
|
|
|
|
|
What you need is a null brush. Use this:
LOGBRUSH logBrush;
CBrush nullBrush;
CBrush* pOldBrush;
logBrush.lbStyle = BS_NULL;
if(nullBrush.CreateBrushIndirect(&logBrush))
{
pOldBrush = dc.SelectObject(&nullBrush);
dc.SelectObject(pOldBrush);
}
Enjoy!
|
|
|
|
|
Isn't this a polygon with no filling?? I need somthimg like:
+-----------------+
|/////////////////|
|/////////////////|
|/////////////////|
+-----------------+
The square is the polygon and the lines are the fillings (my english isn't the best)
|
|
|
|
|
Sorry! I think I did not understand your question. Is that a hatched brush? Maybe you need CBrush::CreateDIBPatternBrush . Take a look in the documentation, they have a sample (I've never used it...)
|
|
|
|
|
All right. Let me tell you what tried so far.
I want to draw a bitmap on the screen of the device and mark an area in the bitmap. Let's say the user loads an image with a building in the front and some surrounding things. And now I draw a polygon with the shape of the building. But I like the building to stay visible. I thought of a polygon with a transparent hatched filling. In this way the area is marked but I can still see the background.
I looked in the MS help for the LOGBRUSH structure. They write of many brush styles. e.g. BS_HATCHED but when I use this define the error message "error C2065: 'BS_HATCHED' : undeclared identifier" is displayed while compiling. So I looked into WINGDI.h and found only the following brush styles
#define BS_SOLID 0
#define BS_NULL 1
#define BS_HOLLOW BS_NULL
#define BS_DIBPATTERNPT 6
The only way to create a transparent hatched brush is to work with BS_DIBPATTERNPT but there is the next problem. How can I create a transparent DIB. I'm relativly new to Windows progamming.
Greetings
\SOLMAN
|
|
|
|
|
I'm a bit in the cold with that issue. Maybe you want to take a look at the bitmaps section here in CP.
Good luck!
|
|
|
|
|
Can anyone recommend "friendly" books for newbies to eVC++?
|
|
|
|
|
I don't know of any books, however, d/l either eVC++ 3.0/4.0 from msdn and the documentation with it will get you well on your way. There are also many examples in the SDK, depending on what platform your developing on.
Also, depending on what you chose to program with, ie. MFC,WIN32, you can still get a book that isn't necessarily for embedded, but Windows itself. Like Programming Windows MFC - J.Prosise helps me learn MFC, which helps me program eVC++4.0 with MFC.
Alot, maybe 90% of Windows programming can apply to embedded Windows programming.
Good luck!
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
I would like to create an application for the pocket PC (iPAQ) using eVC++ that when you start the app it plays a MP3 file for 5 mins and continues to play until it reaches the end of a current section of music. The music is in sound bits of 20 - 40 sec. When it is done playing and found the silent section, the app will close. It was suggested that I look at the Windows Media Player for Pocket PC SDK documentation. I have looked at the documentation but I need some more basic understanding how MP3 files are layed down and some palce I can read how to interface through C++. An additional bit of information: I will be creating the MP3 files from audio cassette tapes. Any suggestions will be greatly appreciated. Thanks
|
|
|
|
|
Did you look at DirectPlay , do a search on it with google.com.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Soliant,
Thank you for the suggestion. To be honest, I do not understand how to use a API. I will look at the documentation but can you give some additional help how I would use?
Thank you
|
|
|
|
|
|
Thank you for the suggestions. I appreciate the input.
|
|
|
|
|
I am trying to install the SDK for WinCE.NET, I only want to target the Intel® PXA250 with ARM* v.5TE instruction set. However, in the install program the closest option I have to choose is the ARMV4T, is this the right one?
Thanks in advance.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
It should be. As far as I can tell, the PXA250 publishes itself as a StrongARM. If you test the processor number, you will get 2577. If you want your app to run on the PXA250 only, I suggest you read the following article on PocketPC Developer's Network: http://www.pocketpcdn.com/qa/processor_type.html[^]
Have fun!
|
|
|
|
|
I d/l eVC++, but it asks me for a serial number? I tried using my VS.NET one, but it didn't work.
How do I get started developing WinCE with eVC++4.0 ?
TIA
Update
Found the serial on the bottom of download page, duh
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
I guess it isn't possible to develop CE apps with VS.NET
Source: http://msdn.microsoft.com/vstudio/device/embedded/evcandcenet.asp [^]
Visual Studio .NET cannot yet be used to develop unmanaged code for Windows CE. To write unmanaged applications and dynamic-link libraries (DLLs) on Windows CE, developers use a stand-alone tool; eMbedded Visual C++ 4.0. eMbedded Visual C++ is designed for application developers to create unmanaged Windows CE-based applications and DLLs that run natively on Windows CE .NET. eMbedded Visual C++ doesn't replace its predecessor, eMbedded Visual C++ 3.0, which is still required for writing unmanaged code for devices based on Windows CE 3.0 such as the Pocket PC 2000 and Pocket PC 2002. Fortunately, eMbedded Visual C++ 4.0 has been designed so that it can be installed on the same system as eMbedded Visual C++ 3.0 without disturbing the operation of eMbedded Visual C++ 3.0. To sum up, eMbedded Visual C++ 3.0 is needed to write code for Windows CE 3.0 and earlier, while eMbedded Visual C++ 4.0 is needed for writing code for Windows CE .NET.
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Use this serial (it is freely available from MSFT):
TRT7H-KD36T-FRH8D-6QH8P-VFJHQ . You cannot use eVC4 on PocketPC 2002 (a shame...)
|
|
|
|
|
João Paulo Figueira wrote:
You cannot use eVC4 on PocketPC 2002 (a shame...)
I found this in the readme of the PPC2002SDK,
The Pocket PC 2002 SDK is not compatible with the eMbedded Visual C++ 4.0 product that is released with the Window CE.Net Platform Builder product.
I need a roadmap for CE development
So will there be a Pocket PC.NET, that we can use eVC++4 with ?
Thanks for all your help. (Gracias que me ayudas)
R.Bischoff | C++
.NET, Kommst du mit?
|
|
|
|
|
Soliant wrote:
So will there be a Pocket PC.NET, that we can use eVC++4 with ?
Yes, apparently there will be a version of CE .NET (CE 4.0). For now, we can only target CE 3.0 with eVC3 or VS.NET with the Smart Device Extensions. It seems that CE .NET is now version 4.1, but still no device... I think this is ridiculous. eVC4 is much better than eVC3 when it comes to language support. Why not make it work with CE 3.0?
|
|
|
|
|
|
It must be the only one... Thanks for writing in portuguese. By the way: the correct spelling is "tudo". Tudo bem por aqui também!
|
|
|
|
|
|
Hi,
does anybody know,
why the virtual OnReceive() function is not working
on WinCe 3.0 (Pocket PC 2002)?
I'm using the CSocket class in a MFC Application.
|
|
|
|
|
Hello,
All of you guys who had developed ActiveX controls for Embedded platforms to please look at the thread Windowless ActiveX Control at the VC++ ATL / WTL / STL discussion board. Thank you guys.
Raphael Amorim Dantas Leite
VC++, VB, Java, .NET and eMbedded Programmer
|
|
|
|