|
QuerySibling is unavailable because I didn't setup the property sheet, I used property control default that came with MFC.
Dave, have you used the "ON_MESSAGE" before and did you have any luck with it.
Thanks
Bill
|
|
|
|
|
jocblack wrote: ...I didn't setup the property sheet...
Which means what exactly?
jocblack wrote: I used property control default...
What is this?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
I want to simultate that the user typed some text in a single line CEdit control
(in another application) and then pressed the Enter key. The problem is I want it done without the control having keyboard focus.
I found the control's handle, I tried sending the WM_SETTEXT message with the text and it works, regardless of the keyboard focus, But when I tried sending the WM_KEYDOWN or WM_CHAR message with the VK_ENTER key it only works if the control has keyboard focus.
Does anyone know how to solve this problem?
Thx
|
|
|
|
|
I may be totally misunderstanding your question but if the WM_SETTEXT gives you the desired functionality, to make it look like some one is typing could you not just call WM_SETTEXT multiple times...for example to 'type' Hello could you not do
WM_SETTEXT 'H'
WM_SETTEXT 'He'
WM_SETTEXT 'Hel'
WM_SETTEXT 'Hell'
WM_SETTEXT 'Hello'
cje
|
|
|
|
|
Is there any api with which we can show a folder selecting dialog
(like CFileDialog)?
Thanks for any help.
KIRAN PINJARLA
|
|
|
|
|
Hi,
check LPITEMIDLIST SHBrowseForFolder( LPBROWSEINFO lpbi );
-----------
Mila
|
|
|
|
|
kiran.pinjarla wrote: Is there any api with which we can show a folder selecting dialog
(like CFileDialog)?
Hope this[^] helps.
|
|
|
|
|
Thank you both of u.
Thank you so much.
KIRAN PINJARLA
|
|
|
|
|
hi
i need to found out the free spaces there in ausb disk?is there any MFC function or API for that....
thanx in advance
birajendu
CyberG India
Delhi
India
|
|
|
|
|
Hi,
BOOL GetDiskFreeSpaceEx(
LPCTSTR lpDirectoryName,
PULARGE_INTEGER lpFreeBytesAvailable,
PULARGE_INTEGER lpTotalNumberOfBytes,
PULARGE_INTEGER lpTotalNumberOfFreeBytes
);
-----------
Mila
|
|
|
|
|
thanx a lot....
birajendu
CyberG India
Delhi
India
|
|
|
|
|
|
Hi
i am working on BackUp module can anybody help me out on it?
i want backup fundamental policy and simple application
Thanks & Regards
rakesh baldha
|
|
|
|
|
Hi,
I want to run a new instance of EXCEL.EXE from my code (if there is already one running) in VC++ .
I am using Visual Studio 7.0 ..and then i need to attach my process to that new instance of EXCEL.EXE..
please help
Regards,
Prashant
|
|
|
|
|
Do you want to run excel of your program?
|
|
|
|
|
yes, i need to create a new instance of excel for my project if there is already any instance running . And also i have to keep the new instance embedded in my project .
Please suggest if u have some idea .
Thanks for ur intrest !
|
|
|
|
|
Hi all
I have a Bitmap which is drawn over a dialog box. This bitmap is drawn over several buttons so that buttons are not visible. If I change the DPI of screen from 96 to 120 then the dialog box appears big and buttons are properly redrawn with increased size. But the bitmap is not drawn in the centre of the dialog. The code is given below . Please help me !
Bitmap.LoadBitmap(iIdBmp);
hBitmap = (HBITMAP)Bitmap;
GetObject(hBitmap, sizeof(BITMAP), &bm);
HDC hDC = GetDC(hDlg);
HDC hMemDC = CreateCompatibleDC(hDC);
SelectObject(hMemDC, hBitmap);
hRef = GetDlgItem(hDlg, iIdMap);
if(hRef != NULL)
{
POINT ptTopLeft;
POINT ptBottomRight;
GetWindowRect(hRef, &Rect);
ptTopLeft.x=Rect.left;
ptTopLeft.y=Rect.top;
ptBottomRight.x=Rect.right;
ptBottomRight.y=Rect.bottom;
ScreenToClient(hDlg,&ptTopLeft);
ScreenToClient(hDlg,&ptBottomRight);
StretchBlt(hDC, ptTopLeft.x,
ptTopLeft.y,
(long)(Rect.right-Rect.left),
(long)(Rect.bottom-Rect.top),
hMemDC,
0, 0,
bm.bmWidth,
bm.bmHeight,
SRCCOPY);
}
DeleteDC(hMemDC);
ReleaseDC(hDlg, hDC);
redindian
|
|
|
|
|
You said if you change 96 to 120 dialog box is appears big but bitmap no where you use this code
|
|
|
|
|
Hi all,
can anybody provide me link of Backup fundamental policy with application?.
i want all policy like full, incremental,differential backup policy with simple application.
Thanks & Regards
rakesh baldha
|
|
|
|
|
Hi,
I am creating an Excel File from my MFC project. In my project, am using CDatabase class to execute SQL statements.
In the below piece of code, database refers CDatabase object, and sSal is a string.
I have created the table name "Pin_List" already. After creating i need to sort the data according to the column named "DUT_PIN". For that, i used the following lines of code.
But still the output data is not sorted. How to do it..? Is there any error in the following..?
sSql = "SELECT NET_NAME,DUT_PIN,TESTER_CHANNEL,TRACE_LENGTH FROM Pin_List ORDER BY 3";
database.ExecuteSQL(sSql);
With Regards,
Sangeetha.
|
|
|
|
|
Hi,
Sorry i have typed "ORDER BY 3" instead of "ORDER BY 2". I corrected in this. Still the sorting is not working.
sSql = "SELECT NET_NAME,DUT_PIN,TESTER_CHANNEL,TRACE_LENGTH FROM Pin_List ORDER BY 2";
database.ExecuteSQL(sSql);
With Regards,
Sangeetha.
With Regards,
Sangeetha.
|
|
|
|
|
Hi Sangeetha,
You cannot use CDatabase::ExecuteSQL for SELECT query. It is only for action query like UPDATE, DELETE and INSERT.
You need a CRecordset object to get the result of a SELECT query.
|
|
|
|
|
Hi Ismail,
Can you tell how to use it..?
CRecordset* record;
record = new CRecordset(&database);
record -> m_strSort = "DUT_PIN ASC";
record -> Open(CRecordset::snapshot, "Pin_List");
recset -> Close();
I used the codings above. But error is coming..
With Regards,
Sangeetha.
|
|
|
|
|
|
WhiteSky, the error is coming while the control goes to BuildSelectSQL() function of CRecordset class. While its coming to the ASSERT(m_nFields != 0) line, its showing the Abort, Retry, Cancel message.
With Regards,
Sangeetha.
|
|
|
|