|
Hi,
How to draw a tranparent rectangle with my selected pen?
|
|
|
|
|
I'm not certain exactly what you are trying to do but you may find the FrameRect[^] function suits your purpose.
It's time for a new signature.
|
|
|
|
|
Select the NULL_BRUSH into the device context and use the Rectangle function.
|
|
|
|
|
Why do you want to draw it if it's transparent ?
Seriously... have a look at CDC::SetBkMode (have not tried it).
Watched code never compiles.
|
|
|
|
|
Maximilien wrote: Seriously... have a look at CDC::SetBkMode (have not tried it).
Nope. Thats only for text.
...byte till it megahertz...
|
|
|
|
|
The brute force method would be to draw four line segments yourselves but that would be less than ideal if you are going to paint for some top end graphics (as this method tends to have jagged corners). So if its supposed to be neat then take others' suggestion.
...byte till it megahertz...
|
|
|
|
|
Hi all,
i m using a List Control having some Items and subitems,on ItemChanged i display the corresponding item and subitem values in a Edit box to show which item is selected.
int nIndex = m_list.GetNextItem(-1, LVNI_SELECTED);
CString strItem = m_list.GetItemText(nIndex, 0);
CString strSubitem1 = m_list.GetItemText(nIndex, 1);
CString strSubitem2 = m_list.GetItemText(nIndex, 2);
when first time i press down arrow key to select second item is not select in list,after this its working fine.
please tell me what can i do 4 this.
thanks in advance.
|
|
|
|
|
I am having a console application EXE. When I right click on the EXE I am unable to find the Version Tab in the Properties dialog.
Can Anyone suggest me the steps to bring version information in my Console Application EXE.
|
|
|
|
|
i think you can add version resource to your console application project also. Edit version info, include necessary headers and build the application.
|
|
|
|
|
Console applications do not have the Version resource by default.
You can add this by right clicking on the project name in Solutions Explorer and selecting Add -> Resource.
Select Version and click on the New button to add a version resource.
|
|
|
|
|
Hi all,
I have changed the CDialog properties.
In CDialog i have changed Border syle as "Resizing" from "Dialog Frame".
If i changed this Property, An Icon is been displayed in the Dialog.
I dont want to have an extra Icon in the Dialog TitleBar.
What should i do.
I tried with SetIcon(NULL,TRUE) //remove the ICON from TitleBar when changing the Border Style.
Thanks & Regards
uday.
|
|
|
|
|
try with
SetIcon(NULL, FALSE);
SetIcon(NULL, TRUE);
|
|
|
|
|
Hi Dev,
As you given a solution
SetIcon(NULL, FALSE);
SetIcon(NULL, TRUE);
For both Big ICON and Small ICON. I am still able to see an Empty White ICON.
Any suggestions please.
Thanks & Regards,
Uday.
|
|
|
|
|
yes.. i apologize, for a resizing dialog box, it shows a white icon, whenever the system menu property of dialog box is true. What about loading a complete transparent icon and set it as dialog icon?
Others may have solid solutions to give you..
|
|
|
|
|
It seems the icon is displayed because of WS_SYSMENU style. So, one option would be to disable System Menu style.
|
|
|
|
|
Hi,
Can anyone tell me how to export a CListCtrl data into pdf/doc format?
Thanks
|
|
|
|
|
|
Hi Rajessh.T.S,
Thanks for your reply.The link you have given me for word document is in C#.I havent worked on C#.Please suggest me some links in C++/VC++.
Thanks
|
|
|
|
|
|
i can't convert int to CString.. need help pls..
here is my code, i want to print whatever the value of count is on a STATIC TEXT Control..
count += 1;
atoi(count);
m_StaticText.SetWindowText(_T("try lang = ")+ count);
i got------>
error C2664: 'atoi' : cannot convert parameter 1 from 'int' to 'const char *'
thanks ahead..
|
|
|
|
|
you may use:
CString str;
str.Fomat(_T("try lang = %d", count);
error is because your syntax for atoi() is wrong.
i think it is itoa() that you really intended to use
|
|
|
|
|
in these code :
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
m_StaticText.SetWindowText(_T("try lang = ")+ count);
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
you can not add a string value to a integer value.
|
|
|
|
|
|
Each item in the list box has a bind data( set with the func 'SetItemData') , if I delete the item which who's index is 7(based zero), so now , is the new 7 indexed item has the last eighth item's data or seventh 's data ?
|
|
|
|
|
the new 7 indexed item will be the old 8th item(with its data set with SetItemData). list box will handle this internally whenever you delete an item from it.
If you set a pointer to some dynamically allocated memory as SetItemData(index, ptr), take care to delete that memory before removing the list box item, if you don't need that memory again.
|
|
|
|