|
I've got a class that's derived from both CWnd and CListCtrl. I'm using it to view events and so it's inserting new events every 15-30 seconds.
When newly inserted items overflows the current view and causes the scroll bar to appear, I resize the window so that I can view all the items. This causes 1 to 2 blank lines to appear at the top of the CListCtrl. Any subsequent resizing up and down of the CListCtrl causes flickering and some of the column's values to be blank.
I'm wondering if anyone has seen this problem before and/or how it can be fixed.
Thanks heaps in advance.
|
|
|
|
|
Perhaps a CListView control would be better as it handles all the scrolling and repainting automatically.
It's time for a new signature.
|
|
|
|
|
I'm getting the same thing with a CListView derived class.
If you solve this issue - please let me know...
Thanks.
|
|
|
|
|
Hello,
I have spent weeks researching how to read/write remote registry values through WMI (StdRegProv). All examples out there are script based.
Currently I am able to connect/authenticate to a remote machine, pull standard WMI information like OS, CPU etc.. but reading/writing to the registry seems to be a totally different animal.
Has anyone had any experience using WMI with C++ to read/write remote registry values?
Thanks in advance,
Rob
Whoever said nothing is impossible never tried slamming a revolving door!
|
|
|
|
|
Your problem may be related to this[^].
Not to be picky, but why don't you connect to the remote registry directly[^]? That's how the registry editor does it.
Oh, and if you're trying to access a user hive, it wont work, because it will not be loaded.
|
|
|
|
|
Thanks! I didn't know about that other method of connecting to the registry, I will give that a shot.
Thank you,
Rob
Whoever said nothing is impossible never tried slamming a revolving door!
|
|
|
|
|
RobJones wrote: other method of connecting to the registry
It needs the remote registry service, which is normally active. Just in case you don't know where to look if it fails
|
|
|
|
|
Hi,
I have the dialog box. Which I am using as Modal dialog box with DoModal functionality. I need to change the Title(Caption) of dialog box before calling the domodal(). Since I am deciding the title of dialog box at run time I can't use the resource setting. One way I know to change the title of Modal Dialog Box is to use OnInitDialog() function of the class derived from the DialgBox and then call setwindowtext() function inside it. But I want to change the title/cation without using OnInitDialog as the project I am working doesn't have class derived from it. And doesn't look proper to genrate the class just for this purpose.
Can anybody knows the other way of doing it??
Thanks in advance..
Mike.
|
|
|
|
|
define a public string member in your dialog class which get set between ctor and oninit and will do setwindowtext()in your OnInitDialog()
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
Hi,
As I mentioned I am not having any Dialog class where I can use the OnInitDialog() function. I want to do it without using it. What I am trying for is the without using separate dialog class for it.
Thanks
Mike
|
|
|
|
|
if you had an own dialog class you wont need this discussions
Press F1 for help or google it.
Greetings from Germany
|
|
|
|
|
I assume from your comments that this is a Win32 dialog rather than MFC. If that is the case you can still trap the WM_INITDIALOG[^] message and change the title there.
It's time for a new signature.
|
|
|
|
|
Nah, inheritance is not an option in Win32 .
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,
I am aware of the InItDialog functionality. But I am not having Dialog derived for it. I am trying to avoid the creation of seperate class for this purpose. Is it possible to change the dialog header without using InItDialog??
Thanks:-
Mike
|
|
|
|
|
Richard MacCutchan wrote: I assume from your comments that this is a Win32 dialog rather than MFC.
Even though he mentions DoModal() ?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
OK, guys I misread it, I shall perform a suitable act of self-humiliation in penance!
It's time for a new signature.
|
|
|
|
|
Richard MacCutchan wrote: ...I shall perform a suitable act of self-humiliation in penance!
No, I do not wish to see you dancing on a table wearing a sombrero.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I've been told my maracas are a sight to behold.
It's time for a new signature.
|
|
|
|
|
You did NOT just say that while I was eating.
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
I think that you may do it, using the CDialog::InitModalIndirect route (see [^]), but it would be "full of pain", because you have to create and fill properly the DLGTEMPLATE struct ([^] read carefully the "Remarks" section).
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,
It's for creating Modal dialog box indirectly. But I already have the dialog box.
Thanks:-
Mike
|
|
|
|
|
That's the only way, IMO.
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]
|
|
|
|
|
mikert_2008 wrote: ...the project I am working doesn't have class derived from it.
So what object are you calling DoModal() from?
"One man's wage rise is another man's price increase." - Harold Wilson
"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
"Man who follows car will be exhausted." - Confucius
|
|
|
|
|
CDialog dlgAbout(IDD_ABOUTBOX);
dlgAbout.DoModal();
|
|
|
|
|
Just an idea to research further. Before you instantiate the dialog, would it not be possible to modify the IDD_ABOUTBOX dialog resource to change the caption property? I don't know how to do that, but that is one thing I would investigate.
Chris Meech
I am Canadian. [heard in a local bar]
In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]
|
|
|
|