|
You know that codeproject has a very nice search engine ? This[^] for instance.
|
|
|
|
|
See here.
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
I want to display 3 different mouse cursors in CRichEditCtrl when mouse moves to different places respectively.
The 3 cursors are I-beam, arrow and hand.
I use SetClasslong(...) to change cursor, but, the function is not working.
The only cursor displayed is default (I-beam).
Is it possible to change cursor of a CRichEditCtrl?
If yes, how?
thanks
|
|
|
|
|
Try handling the WM_SETCURSOR[^] message.
> The problem with computers is that they do what you tell them to do and not what you want them to do. <
> Life: great graphics, but the gameplay sux. <
|
|
|
|
|
the problem has been fixed by SetCursor(..) function other than SetClassLong(...).
|
|
|
|
|
Hi i have created a message box as
MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK );
i need to display this on top of other window in my application
Current whenever i click on other areas..it goes behind the pages..
Please provide comments..
|
|
|
|
|
change NULL of first parameter
MessageBox (NULL,tstrSuccessMsg.c_str (),tstrTitleSuccess.c_str (),MB_OK );
to the window handle in which the Message-Bos is displyed.
|
|
|
|
|
MessageBox(m_hWnd,"you info","captain",MB_TOPMOST|Your mode);
|
|
|
|
|
Hi
I am implementing security on Contact base smart card which follows scosta template.In card structure ef is directly under DF and DF is directly under MF. According to the template i am implementing security on elementary file(both sac and sae attributes are specified at time of creation in fcp) according to security condition read and update of record requires verification of pin(which is already defined in pin file).
Problem is that after implementing the security attributes on card now also my card is not following that,after selecting the file i can directly read and write on record, card does not ask for verification of pin.
please help me asap...............
|
|
|
|
|
|
The likeliness of getting a reply to your question is inversely proportional to the number of times you post it.
About your question - I'm sure if you google a bit you'll find something that points to some registry entries that will help you detect the language pack.
|
|
|
|
|
Hi everyone,
I use vfw to play background music in my app(MFC based), but how to repeat the mucis automaticly?
HWND video = NULL;
if(video == NULL)
{
video = MCIWndCreate(this->GetSafeHwnd(),
AfxGetInstanceHandle(),
WS_CHILD | WS_VISIBLE | MCIWNDF_NOPLAYBAR,
m_Path);
}
else
{
MCIWndHome(video);
}
MCIWndPlay(video);
modified on Friday, March 20, 2009 4:48 AM
|
|
|
|
|
Have you tried MCIWndSetRepeat() ?
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
In MSDN: "The MCIWndSetRepeat macro only affects playback that the user initiates by hitting the play button on the toolbar. It will not affect playback started with the MCIWndPlay macro."
In my application, user cannot see the toolbar beacause it is a background music. So the MCIWndSetRepeat didn't work. 
|
|
|
|
|
Look at the MCI_DGV_PLAY_REPEAT flag available with MCI_PLAY .
"Old age is like a bank account. You withdraw later in life what you have deposited along the way." - Unknown
"Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons
|
|
|
|
|
Thanks. Does it mean I should use mciSendCommand() function instead of MCIWndPlay()?
I have tryed mciSendCommand(), but it seems cannot play same music at the same time, such as a gun fire after another (play gunFire.mp3 at 0:00, and anther at 0:03 without stop pre one). The MCIWndPlay() can handle this issue, this is the reason for that I prefer to use it.
|
|
|
|
|
Hello,
I have made a CMDIChildWnd derived window. but once maximized it cannot be restored . This is not Doc-View Architecture.
CMDIFrameWnd* pFrame = STATIC_DOWNCAST(CMDIFrameWnd,AfxGetApp()-
>m_pMainWnd);
if(!Create(NULL, FrameName,WS_VISIBLE | WS_CHILD |
WS_OVERLAPPEDWINDOW ,
CRect(0,0,200,200), pFrame, NULL))
{
TRACE0("Failed to create view window\n");
return false;
}
What must the problem ? Any ideas.
Pritha
|
|
|
|
|
you may call ShowWindow(SW_RESTORE) to restore it.
when user clicks reatore-box (maximum-box), window receives WM_NCLBUTTONDOW.
you can use HitTest under the message to detect if restore-box is clicked.
|
|
|
|
|
Thanks for reply,
Actually I think thhe minimize,maximize,close buttons that appear are not getting clicked.Something like they are disabled but I did not disable them
Priya
|
|
|
|
|
Hi,
When im trying to use CreateDirectory("C:\\test",NULL)...im getting the below error
CreateDirectoryW: cannot convert parameter 1 from 'const char [8]' to 'LPCWSTR
and one more doubt...
when im using
LPTSTR lpszBuffer;
lpszBuffer=new TCHAR[SIZEOFTCHAR];
char* cNext="";
cNext=lpszRetrunBuffer;
im able to get the below error....
error C2440: '=' : cannot convert from 'LPTSTR' to 'char *'...
Please help me out....
|
|
|
|
|
This has nothing to do with CreateDirectory but rather with unicode settings.
I suggest you read this excellent article[^], things will be much clearer afterwards.
|
|
|
|
|
Thanks for ur help....
But Regarding my second doubt ....
when im using
LPTSTR lpszBuffer;
lpszBuffer=new TCHAR[SIZEOFTCHAR];
char* cNext="";
cNext=lpszRetrunBuffer;
im able to get the below error....
error C2440: '=' : cannot convert from 'LPTSTR' to 'char *'...
Please help me out....
|
|
|
|
|
Did you read the article ? It seems you didn't because everything is clearly explained there.
Anyway, why are you using a char* and not a TCHAR* ?
|
|
|
|
|
Use CreateDirectory(_T("C:\\test"),NULL) (to be independent of Unicode/ASCII build settings) or CreateDirectory(L"C:\\test",NULL) to explicitly use a Unicode string.
pradeep455 wrote: char* cNext="";
LPTSTR cNext="";
A TCHAR can either be an 8-bit character, or a 16-bit character, depending on various macro definitions. Whenever you see LPCTSTR or LPTSTR, use _T() around a literal string definition (as I showed above) to ensure you use the correct character type. Also, use TCHAR* or LPTSTR rather than char* or wchar_t* to make character pointers.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
|
|
|
|
|
Thanks for ur answer but when im using like below...
LPTSTR lpszRetrunBuffer;
lpszRetrunBuffer=new TCHAR[SIZEOFTCHAR];
TCHAR* cNextSection="";
cNextSection=lpszRetrunBuffer;
im able to get error like...
error C2440: 'initializing' : cannot convert from 'const char [1]' to 'TCHAR *'..
and when i use.. cNextSection=cNextSection+strlen(cNextSection)+1;
the error is ...error C2664: 'strlen' : cannot convert parameter 1 from 'TCHAR *' to 'const char *'
Please help me out...
|
|
|
|