|
hanlei0000000009 wrote: cx is not same in all times. How to get the right cx which is the real size?
Each time it represent the current real size. The last time is possibly of interest for you.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
if you want the size, call GetClientRect() in (and after) OnInitDialog
Greetings from Germany
|
|
|
|
|
Hi,
Can anyone guide me to write a VC# (.Net 2008) Class Library that can be used in VC# & VC++ (.Net 2008) code?
If I have defined a preprocessor macro XYZ (#define XYZ) in VC#, then how to check that macro in VC++ (using #ifdef, #else, #endif)? Because I tried it, but it was not working properly.
- Aniket A. Salunkhe
|
|
|
|
|
Aniket Salunkhe wrote: Can anyone guide me to write a VC# (.Net 2008) Class Library that can be used in VC# & VC++ (.Net 2008) code?
I dont know what do you need?
|
|
|
|
|
Hi,
I want to create a VC# dll which will have Class defined in it.
Then I want to use that class (from the dll) in other codes which are written in VC# & VC++.
For that I want help to write such dll.
Regards,
Aniket A. Salunkhe
|
|
|
|
|
I think you missed the forum.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
I think this question depends to C#,Managed c++ and c++.
|
|
|
|
|
Well, if I need some help about writing C# code then I ask the C# forum. Am I wrong?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
No thats right because you are a professional member on the codeproject.
|
|
|
|
|
Hamid. wrote: because you are a professional member on the codeproject.
Well, you'll become soon, I suppose.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi All,
I have an activex control subclassed from SysListView32. I wanted it to appear and work like the property grid the we see in VS 2003/2005.
I was able to get the look right. The problem is even though I added items using ListView_InsertItem, these items are not visible on the list control.
In PreCreateWindow, I am setting the style like this:
cs.style |= LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_OWNERDRAWFIXED;
In OnCreate, I am adding the columns and a single item like this:
ListView_InsertColumn(m_hWnd, 0, "Empty");
ListView_InsertColumn(m_hWnd, 1, "Property Name");
ListView_InsertColumn(m_hWnd, 2, "Property Value");
LVITEM lvItem;
lvItem.mask = LVIF_TEXT | LVIF_PARAM;
lvItem.iItem = 0;
lvItem.pszText = "";
ListView_InsertItem(m_hWnd, &lvItem);
ListView_SetItemText(m_hWnd, 0, 1, "Properties")
I also used OnCustomDraw, OnEraseBkgnd & MeasureItem methods to archive my look and feel.
Please help !
|
|
|
|
|
thammadi wrote: cs.style |= LVS_REPORT | LVS_NOCOLUMNHEADER | LVS_OWNERDRAWFIXED;
if you specify LVS_OWNERDRAWFIXED , you have to handle the DrawItem() function. In your case since your not handling the owner draw, remove the LVS_OWNERDRAWFIXED style.
|
|
|
|
|
I removed LVS_OWNERDRAWFIXED , even then the inserted item is not visible.
|
|
|
|
|
Whats the return value of ListView_InsertColumn and can you see items if you remove LVS_OWNERDRAWFIXED?
|
|
|
|
|
removed LVS_OWNERDRAWFIXED , items still not visible.
|
|
|
|
|
I got this working !
mistake was, I did not use memset(&lvItem,0,sizeof(LVITEM)); in the below code snippet
LVITEM lvItem;<br />
lvItem.mask = LVIF_TEXT | LVIF_PARAM;<br />
lvItem.iItem = 0;<br />
lvItem.pszText = "";<br />
ListView_InsertItem(m_hWnd, &lvItem);<br />
ListView_SetItemText(m_hWnd, 0, 1, "Properties")
|
|
|
|
|
Hi
whats the difference between createprocess and shell execute?
|
|
|
|
|
When you use of createPRocess it makes a new process and a thread for it and new process has a handle that you can use of it that this handle has PROCESS_ALL_ACCESS access with ShellExecute you can execute any command.
|
|
|
|
|
Documentation isn't (CreateProcess [^], ShellExecute [^]) satisfactory?
Roughly speaking the former gives you more control, the latter is more user friendly.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
CPallini wrote: Documentation isn't (CreateProcess [^], ShellExecute [^]) satisfactory?
I've always wondered how you get those links.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Visual C++ MVP
|
|
|
|
|
Rajesh R Subramanian wrote: how you get those links
Drugz help.
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|
|
Hi all,
Is there a way to only have the days (1-31) visible in the calendar Control?
Thanks,
jayjay
|
|
|
|
|
I guess you would need to write your own control for this...
or see if CMonthCalCtrl::GetMinReqRect suffice your needs
Somethings seem HARD to do, until we know how to do them.
_AnShUmAn_
|
|
|
|
|
hello
i programing the code && design the interfaces
then , connect the programing with db "store the results in db"
then connect the db with interface and appeare the results on edit boxes in the interface
now , we want excute the programing code when click specific button .so, we use this function :
ShellExecute(this->m_hWnd,"open","proto1.exe","","", SW_SHOW );
when we run the interface and click the button excute the programing code"proto1.exe"
but the result false . the results diffrent about the results that appere when excute the file separetly on console also the data base some time doesn't update .so, the results itrated
also , the same copy from proto1 that deal with db and interface when take it in other place provide the same false results . althogh , ather copy of ptoto1 that dosn't deal with db and interface work very good
note , in proto1 code read from 2 files and these files important to programing the code and the results depod on them
in interface , the user do prowse and select 2 files . these file appear in edit boxes then stored in 2 other static files"in each chose for user change the content of files" that the proto1 read from them
i hope knowing why the results appearing false and db does not change
|
|
|
|
|
Could you provide, please, an alternative question?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
[My articles]
|
|
|
|