|
You will have to write code for that...
Regards,
João Paulo
|
|
|
|
|
... a bewildering number of choices...
It's easy to simulate PS_DOT for vertical or horizontal lines, but for slanted lines, we are talking about something else...
Regards,
João Paulo
|
|
|
|
|
In EVC Draw a Line Always Flat Cap but i want draw a line that is round Cap,
how can i do ? can u tell me about this ? thx a lot ^^
ps. my english not very good i hope u can know what i say
|
|
|
|
|
There is no way to do it unless you do it by yourself (implementing a line drawing algorithm)...
Regards,
João Paulo
|
|
|
|
|
Although,There is no way to do this,I still thx for ur answer ><"
|
|
|
|
|
I made my own button class that can make a button transparent.
MyButton inherits Control, of course, so I overridden the OnPaint() method, I put an image on the button then I use the SetColorKey(...).
Until here, it's ok.
I use MyButton class on a form. I put all the button properties in the form's onstructor after InitializeComponent() method.
Well, the transparency property is valid only after I do some action (push) on the button.
I don't understand...
Anca
|
|
|
|
|
Can any one give me technical details on how to port embedded linux to a new board/processor? what are the steps and things to consider? any website is there??
thanks in advance
regards,
Bhaskar
___________________________
When a thing is new, people say, "It's not true." Later, when its truth becomes obvious, people say, "It's not important." Finally, when its importance cannot be denied, people say, "Well, it's not new."
|
|
|
|
|
Pocket PC / Pocket PC 2002 supports "szAutoDialFunc" and "szAutoDialDll" with RASENTRY?
Anybody can help me???
regards
Nathan
|
|
|
|
|
Well, I got my wizard dialog working to a point, but there is a visual glitch.
The area where the tab control displays the tab itself (along the bottom edge of the prop sheet) is blocking some of the controls from being seen.
Anybody have a work-around for this? Do I have to overrie some paiting functionality?
I can make a screen shot available if I didn't explain this well enough.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
John Simmons / outlaw programmer wrote:
I can make a screen shot available
Please, do that. If that is what I'm thinking it is, I believe you will have to resize the embedded property page...
Regards,
João Paulo
|
|
|
|
|
http://www.paddedwall.org/wizardshot.jpg[^]
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
My darkest fears have come true (I was right). But it is almost sorted out. Gotta put the kids in the table for dinner and will be back in an hour with the full solution. Sorry for this...
Regards,
João Paulo
|
|
|
|
|
Well, if you are using my code, my apologies. What happens is that the tab control is hidden but the property sheet does not know about it, so it will happily resize the embedded property page as though there was a tab control. I remeber vaguely, when I first wrote the code, that I thought about this possibility...
So, how do we sort this mess out? You only need to do some changes in the CCeWizard class. These will be reflected on the article but here they are, in case you are in a hurry.
CCeWizard.h
class CCeWizard : public CCePropertySheet
{
DECLARE_DYNAMIC(CCeWizard)
public:
CCeWizard(UINT nIDCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);
CCeWizard(LPCTSTR pszCaption, UINT idToolBar = 0, CWnd* pParentWnd = NULL);
public:
public:
public:
virtual BOOL OnInitDialog();
public:
virtual ~CCeWizard();
protected:
UINT m_idToolBar;
SHACTIVATEINFO m_sai;
void UpdateControls();
void PopulateToolBar();
void ResizePage();
afx_msg void OnBarBack();
afx_msg void OnBarNext();
afx_msg void OnBarOk();
afx_msg void OnBarCancel();
afx_msg void OnPaint();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized);
afx_msg void OnSettingChange(UINT uFlags, LPCTSTR lpszSection);
DECLARE_MESSAGE_MAP()
};
CCeWizard.cpp
CCeWizard::CCeWizard(UINT nIDCaption, UINT idToolBar, CWnd* pParentWnd)
: CCePropertySheet(nIDCaption, pParentWnd, 0),
m_idToolBar (idToolBar)
{
memset(&m_sai, 0, sizeof(SHACTIVATEINFO));
m_sai.cbSize = sizeof(SHACTIVATEINFO);
}
...
BEGIN_MESSAGE_MAP(CCeWizard, CCePropertySheet)
...
ON_WM_ACTIVATE()
ON_WM_SETTINGCHANGE()
END_MESSAGE_MAP()
...
void CCeWizard::UpdateControls()
{
...
ResizePage();
}
...
void CCeWizard::ResizePage()
{
CPropertyPage* pPage = GetActivePage();
if(pPage)
{
CRect rc;
pPage->GetWindowRect(&rc);
ScreenToClient(&rc);
rc.bottom += 22;
pPage->MoveWindow(&rc);
}
}
...
void CCeWizard::OnSize(UINT nType, int cx, int cy)
{
CCePropertySheet::OnSize(nType, cx, cy);
ResizePage();
}
void CCeWizard::OnActivate(UINT nState, CWnd* pWndOther, BOOL bMinimized)
{
HWND hWnd = NULL;
if(pWndOther)
hWnd = *pWndOther;
SHHandleWMActivate(m_hWnd, MAKELPARAM(nState, bMinimized), (LPARAM)hWnd, &m_sai, 0);
}
void CCeWizard::OnSettingChange(UINT uFlags, LPCTSTR lpszSection)
{
SHHandleWMSettingChange(m_hWnd, (WPARAM)uFlags, (LPARAM)lpszSection, &m_sai);
}
That's all...
Regards,
João Paulo
|
|
|
|
|
John,
The article is updated. As you can see from the image, your button problem is solved (I hope you don't mind my using your name on the button - if you do I'll remove it).
A Wizard-like property sheet for the Pocket PC[^]
Thank you for using the code and spotting this problem!
Regards,
João Paulo
|
|
|
|
|
You are GOD! If I can manage to find a sacrificial virgin, I'll send her to you yo do with as you please.
------- signature starts
"...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
"You won't like me when I'm angry..." - Dr. Bruce Banner
Please review the Legal Disclaimer in my bio.
------- signature ends
|
|
|
|
|
|
I have a dialog with a timer that check to see if it can close itself
when it can I kill the timer and send a PostMessage(WM_CLOSE);
The dialog is very slow to close , If I click the system close button, it is immediate
Also Tried SendMessage.
Whats the best way to close the dialog ?
NB: THe main dialog has a timer doing serial comms.
Win CE 3.0
Thanks
.Confused
|
|
|
|
|
David,
what's your platform ? Is it a HPC2K Industrial device ?
In this case try to move the EXE to the RAM instead of running directly from the FLASH Memory :
I've found that many times this solved my problems....
|
|
|
|
|
I do it the following way:
...
class CConnMsgDlg : public CDialog
{
...
protected:
virtual BOOL OnInitDialog();
...
afx_msg LRESULT OnEnd(WPARAM wParam, LPARAM lParam);
DECLARE_MESSAGE_MAP()
...
private:
static const UINT MY_WM_END;
};
...
const UINT CConnMsgDlg::MY_WM_END =
RegisterWindowMessage(_T("MY_WM_END-{29813B84-DD1E-11d7-9B13-0002B32C4875}"));
BEGIN_MESSAGE_MAP(CConnMsgDlg, CDialog)
...
ON_REGISTERED_MESSAGE(MY_WM_END, OnEnd)
END_MESSAGE_MAP()
BOOL CConnMsgDlg::OnInitDialog()
{
CDialog::OnInitDialog();
return TRUE;
}
LRESULT CConnMsgDlg::OnEnd(WPARAM wParam, LPARAM lParam)
{
EndDialog(wParam);
return 0L;
}
void CConnMsgDlg::ThreadFnc()
{
...
PostMessage(MY_WM_END, IDOK);
}
I have a dialog that starts a thread in the 'OnInitDialog' function.
The thread reads some data from the serial port. This can take a long
time, so I do it in a own thread. When the thread is ready it post
the message 'MY_WM_END', that I have registered in the message map.
The 'OnEnd' function closes the dialog with 'EndDialog'.
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|
Is there a 3D library for WindowsCE? And if so what kind of performance is it capable of. Is it based on some other library like Direct3D or OpenGL?
J.
----------------------------
|
|
|
|
|
|
Hi all!
I'm developing a phone application under eVC. I managed to make a voice call with CeDialer sample under PPC2002 (i didn't manage under PPC2000..), but now I don't know how to set the OS to start my program in case of an incomming call.
Under Pocket PC 2000 (Siemens SX45) I had to edit the regestry as following:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Shell\Keys\40C9
but under Pocket PC 2002 (Qtek 1010) there is no such a key.
How can I solve the problem?
Thanks in advance!
Best regards:
Shane99
|
|
|
|
|
Hi all,
I want to play a flash file in my eVB application. I have used the
shockwaveflash (Flash.ocx) control. But i am getting an error which says, "The control Shockwaveflash1 ({D27CDB6E-AE6D-11CF-9688-444553554000})could not be created". Please help me.
Mahesh
|
|
|
|
|
Hello,
How to control the backlight on/off or adjust the backlight?
Regards
Tsung-Yu
|
|
|
|
|
I don't recall there being a standard way, because backlight is Pocket PC depended. Different Pocket PC devices need different code to control backlight and for most of them this code is undocumented.
Your device's manufacturer may have an SDK that you can use to set the backlight.
Cheers,
Daniel.
--
FIND A JOB YOU LOVE, AND YOU'LL NEVER HAVE TO WORK A DAY OF YOUR LIFE.
|
|
|
|
|