Search:
Type: Posts; User: Caprice
Search:
Search took 0.09 seconds.
-
April 21st, 2004, 02:27 PM
Of course, it's correct. And here is the error:
HDC hDC = ::GetDC(hWnd);
HDC hMemDC = ::CreateCompatibleDC(hDC);
HBITMAP hBitmap = ::CreateCompatibleBitmap(hMemDC, 32, 32);
I cannot explain...
-
April 19th, 2004, 01:13 PM
look this function GetBitmapBits. For Windows 2000 it works.
-
March 9th, 2004, 02:39 PM
Firstly you need to be sure that you send something and receive something. You can put AfxMessageBox(TEXT("Received")); if ReadFile returns TRUE.
The code I wrote in the previous message will show...
-
March 9th, 2004, 12:21 AM
Are you sure about this line:
szPortName1 = "COM2:";
Maybe it's :
szPortName = TEXT("COM2:");
And loop in void CSENDDlg::OnButton1() looks very strange:
1. how to stop it?
2. you put a...
-
February 27th, 2004, 04:12 PM
But where you test your application? If it is an emulator so you need to put your pictures in its folder. If you have a PDA, so copy the application and the picture into \\Windows\StartMenu, for...
-
February 27th, 2004, 04:04 PM
I think you can find an SDK for this Toshiba. I'm not sure but I think EVC4 already has an ARMV4.
-
February 27th, 2004, 03:54 PM
Perhaps, I don't know how to use such functions correctly. So I prefer to use events when I need to suspend a thread. The thread is a loop with WaitForMultipleObjects.
-
February 27th, 2004, 06:33 AM
I think you're talking about GetBitmapBits function.
Example:
BITMAP bitmap = { 0 };
::GetObject(hBitmap, sizeof(BITMAP), &bitmap);
int nSize = ((((bitmap.bmWidth * bitmap.bmBitsPixel) + 31)...
-
February 27th, 2004, 06:21 AM
I don't know what is this the ICE or how you called it and I'm not sure that I understand what is this the DOS application but I can try to answer you. I think there is no problem with Win32 Serial...
-
February 12th, 2004, 02:24 PM
If all previous answers did not help, try to remove your static picture control and draw the bitmaps directly on the window HDC. This way always works. Especialy on WinCE. If it's difficult for you,...
-
January 31st, 2004, 04:14 AM
Send a message. For example:
...
#define WM_NEWTEXT WM_USER + 51
...
From the first dialog:
::SendMessage(hSecondDlg, WM_NEWTEXT, (WPARAM)szBuffer, (LPARAM)nSize);
and inf the second dialog...
-
January 9th, 2004, 09:19 AM
The width and the height you can get from the window. Obviously somewhere you wrote something like HDC hDC = ::GetDC(m_hWnd);
-
January 9th, 2004, 09:09 AM
I found a function: SHSetAppKeyAssoc.
It works exactly as I wanted.
I saw this arcticle (with undocumented function). I don't know why somebody needs it. Do you have any idea?
-
January 7th, 2004, 04:50 PM
Did you solve this problem ?
I thought the buttons are hot keys and I can use RegisterHotKey and that will work like it written in MSDN. I was mistaken.
So can you tell me what to do?
-
December 5th, 2003, 05:30 AM
I tried it for the lict control and that worked:
ImageList_AddMasked(hImageList, hBitmap, clrTransparent)
The image list was created so:
HIMAGELIST hImages = ImageList_Create(16, 16, ...
-
December 5th, 2003, 05:09 AM
What about GetTickCount or GetSystemTime functions?
-
December 3rd, 2003, 03:11 PM
maybe we can help you without downloading?
1. From my point of view you can use only one view and put on it all controls you need and your button will hide part of them and show other part.
2. What...
-
December 3rd, 2003, 02:56 PM
WOW! It's too complicated.
1. The button belongs to the first dialog and the dialog has somethig like OnButton function where you wrote int nRet = dlg2.DoModal(). If it is correct you can write...
-
December 3rd, 2003, 01:17 PM
BOOL SelectFileName(LPCTSTR lpctstrInitFileName, LPTSTR lptstrSelectedFileName, DWORD dwCapacity)
{
BOOL bOut = ((lptstrSelectedFileName != NULL) && (dwCapacity > 0));
if (bOut)
{...
-
December 3rd, 2003, 01:04 PM
Try this:
m_LanguageFile.open(m_CSettings->GetSetting(CSettings::LanguagePath), ios::out);
-
December 3rd, 2003, 12:10 PM
You're asking where you can find different visual controls for Window CE ?
-
December 3rd, 2003, 01:33 AM
Take a look:
http://www.pocketpcdn.com/index.html
http://www.pocketpcdn.com/forum/index.php
and codeguru and developer.com of course.
:) I'm trying to remove MFC from the projects for...
-
December 3rd, 2003, 01:24 AM
What I know about it you can remove the caption - that's the window style you can remove it using ModifyStyle function. Or if you like the caption :) you can play with WM_SIZE or better with...
-
December 3rd, 2003, 01:13 AM
If you're talking about standard application projects in MFC (or WTL), you can
1. create SDI application and on the last page of the wizard you can set CFormView as a base class for your view...
-
December 2nd, 2003, 05:19 PM
A!
About MFC..
class CYourEditBox: public CEdit
{
...
}
will work.
|
Click Here to Expand Forum to Full Width
|