Hello Everybody!
I just had this idea of this aaplication. It's supposed to handle quite a bit of data and perform several sorts of operations on each of them, the operations varying on the type of data. The key is, that all sorts of data needs to be accessed very quickly and in a simple way.
I...
Hello again.
I'm having this dialog bar in my application and I want it to be hideable, so I added an item to my menu which is supposed to show/hide the dialog bar.
This works fine as long as the bar is docked. However, when it's floating it doesn't hide completely. There's still a portion of...
[dazed]
Allright, I triet \n and I tried \r. Both of them had the same result. I never got the idea to actually combine the two!
Thanks for helping me out (again)!
Works great now!
so here I go with another embarassing newbie question.
I have a bunch of numerical values (integers) which I want to display in a mutiline CEdit control, each on a seperate line.
I tried something like this:
sFormatString.Format("%d\n", i);
sList += sFormatString...
Alright, never mind! I found the solution in another forum. I guess this is a typical newbie-fault.
Of course, it has to look like this:
CEdit* cNumberOfDice = (CEdit*)m_wndDlgBar.GetDlgItem(IDC_DR_DICE);
[2thumbsup]
The problem is that you usually don't derive classes from the CDialogBar class.
And the class wizard doesn't support deriving from CDialogBar either. Of course, I could do it manualy but there has to be another way!
Oh yeah, I forgot to mention:
I can not assign member variables to the controlls, as would be expected. Since the Dialog Bar doesn't have it's own class derived, like a FormView would, it doesn't show up in the class wizard.
Hi guys.
It's been a while but still feels good to be back again. I'm slowly picking up programming again and right now I'm trying to get an MDI application together, which includes a few dialog bars. I'm an absolute newbie when it comes to MFC, so please be kind.
I know how to create and...
I know this post is long forgotten but for everyone who is interested, I dug up the following from MFC:
The Dialog Bar is an extension of the CMainFrame, therefore all messages are handed down to CMainFrame. What I did was create the button in the DialogBar, right-click on it in the Dialog...
Well, this is sort of a work around but not what I meant. Still, when the form is displayed, the main form snaps out of focus quickly, which makes it even more annoying. And I do something on that new form, the main form looses focus again. So, I would have to place a frmMain.SetFocus in pretty...
Ok, this problem is somewhat intricate.
I load a form into a picturebox by setting the picturebox as the forms parent with the API function SetParent. That way I can display forms inside the picture box. I use this to have a somewhat interchangable interface. More specifically, I use it in...
Hi folks!
This problem is so ridicoulusly basic that I'm really ashamed to ask here but I wasn't able to solve it and searching the forum didn't bring any enlightement either...
I have an MDI application and I want to create a floating, dockable toolbox, kinda like the project explorer or the...
Just to get the versions straight: I have VB6, no service pack and I don't get any errors considering focus. Teh only error I get is something along the lines of "object doesn't support this property".
I call the hide proccedure at startup (Form_Load()).
I tried stepping through with...
Hmm, but when I hae just a couple of controls not supporting Enabled or whatever, should the whole loop fail? I stepped my way through it and the first control encountered is a command button, which, for some strange reason, gives me the above mentioned error. Weird... I do have some...
Hello everybody.
I'm trying to create a table in an Access database via SQL.
When I enter something like this, everything works fine:
CREATE TABLE tblExample (
id INTEGER PRIMARY KEY NOT NULL,
txtBla TEXT NOT NULL,
intFoo INTEGER NOT NULL
)
BUT when I enter this, I get a Syntax...
Hello everybody.
Yesterday night I was trying to write a little bit of code to disable/hide all the controls in a form. I did something like this:
dim MyControl as Control
For Each MyCOntrol In frmMain.Controls
MyControl.Visible = false
Next MyControl
I wrote this off the top of my head...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.