|
69 Bay wrote: I have a project (dialog based) that I may need to start working on soon, that has a need for several buttons, and a bitmap to be displayed behind them.
There are many articles on CP explaining how to use Owner drawn buttons.
69 Bay wrote: To make the application useful for future projects
Not sure how you want to use this in future projects, perhaps you could explain a little better.
69 Bay wrote: i would like to read in the button positions from a config file, and move them to the specified location.
You may want to use an .ini file for this, .xml would come with a little too much overhead in my opinion. You could however read the .rc file.
69 Bay wrote: 1 How do you move a button in a dialog?
SetWindowPos() or MoveWindow() , though if you are reading an ini file to create the buttons you shouldn't really need to move them again unless you are implementing an anchoring system.
69 Bay wrote: 2 Can you display a bitmap in a dialog, given the .bmp filename? If so how?
Search CP for owner drawn buttons, for loading the bitmap search for one of the many DIB wrappers.
|
|
|
|
|
Hi- thanks for helping
I have no problem with including owner drawn buttons in the app - I was just unsure as to how to move the button around the dialog window - I will try SetWindowPos()
What I am hoping I can do is generate a standard application, which I can configure (by use of a .ini file as you suggested) to each customers requirments. If I had 2 customers applications that performed the same function, but looked different due to button locations, and the different bitmaps, I would have to maintain both, whereas if I could do what I wanted, it would mean a single (configurable) application, and all I would initially have to do is generate different .ini files.
Thanks for you help - what I now need to go and do is try SetWindowPos(), and search Cp for loading bitmaps
Thanks again
69 Bay
|
|
|
|
|
So I'm using those waveIn*-functions like waveInOpen(), waveInClose() etc.
I've been googling around this subject for a while and have found very good examples and I have got this thing even working with some ugly thread system (CALLBACK_FUNCTION).
Still I'm wondering if I could do the thing using events (CALLBACK_EVENT) without threads. When I tried to do something like it, it actually did not work.
Some little example would be really appreciated =)
|
|
|
|
|
where can I download this program?
|
|
|
|
|
|
Tomer kahlon wrote: where can I download this program?
this program is not free.
you can doewnload it from its website.
notice that it's out of date ; Visual Assist X is now available for about $140
|
|
|
|
|
It's a good tool, but don't you think it's a little over priced? I would be nice if they made the older versions freeware
|
|
|
|
|
Is there any possibility of changing the caption bar color to gradient color and changing the min,max and close buttons(means to put different color pics), required icon and title
|
|
|
|
|
|
I tried that article but it looks not good. If we do like that the bar looks like as some thing we attached to captionbar, is there anyother way to do it?
|
|
|
|
|
Hello,
i have an problem with the memory management of my program, (i think)it use to much of my RAM!!!
When i open the task manager, i see:
Memory usage | Maximum memory usage
35.856K 54.296K
ok, with the first value i agree, but a cant agree with the maximum memory usage !!!
Why is the differece so big, produce my application maybe memory leaks, or what can be reason for that???
Can someone explain me this please!
thanks in advance!
break;
|
|
|
|
|
Have a look at this article[^] and things should clear up for you.
Hope this helps
--
Roger
"It's supposed to be hard, otherwise anybody could do it!" - selfquote
"No one remembers a coward!" - Jan Elfström 1998 "...but everyone remembers an idiot!" - my lawyer 2005 when heard of Jan's saying above
|
|
|
|
|
Thanks for the link, i read it now!
regards
break;
|
|
|
|
|
Hi
I want to convert my existing project in VC++ to Unicode enabled.for this i changes datatype from char * to wchar_t*, fopen to _wfopen but there is error as
_wfopen' : cannot convert parameter 2 from 'char [2]' to 'const unsigned short *'
I change all required setting for unicode.
M.Atul
|
|
|
|
|
I think if your _wfopen function looks like this:
_wfopen(. . ., "r");
then you have to change it to this:
_wfopen(. . ., L"r");
I hope this helps.
|
|
|
|
|
In many of the examples given in CodeProject regarding Skinning of ComboBoxes, I have noticed that if the combo box has too many elements, then a scroll bar is shown which is not skinned.
How do we skin the scroll bar along with the combobox?
Cutebug
|
|
|
|
|
Hi frinds,
In my project i am not getting .pdb file in Debug Folder but its generating old Project .pdb file.From this i was not able to debugg my code.
I Guess problem with Setting.Anybody who helps me out regardsing this problem.
|
|
|
|
|
Hi all
i have make a ActionMovie program to run avi movies,
how can i ratate the video,i need that function;
Thanks.
|
|
|
|
|
you can use "Open CV" its open source library of intel
in this library you can found function for video and image processing.
|
|
|
|
|
currently i am developing a program which uses a deep search loop, story is similar to search a coin along all points of roads in a city.
the function works fine for a small city, but once the city is big and contains more roads, the function crashed.
the function looks like:
//--------------
void FindSomething(...)
{
//first line
/*code
......
Code*/
//crash line just before call next search
FindSomething(...);
}
//-------------------
when the function crashes, I detect crash point, which is just before calling next loop but not enter the function (not crashed at //first line).
i am wondering why it crashes at there? that line is empty before I add debug code.
I suspect that a search loop can not go to too deep otherwise system can not controls it over (or heap issue?).
I detected the loop goes to around 20,000 times at crash time, it is not too far.
could you explain why and any help?
|
|
|
|
|
may be that your recursive search is too deep ...
Did you try to increase the stack size in the project > settings > link options
|
|
|
|
|
(1) which one is exactly for this?
.../Customer/Link incrementally?
(2)what is strategy used by Windows-Paint to fill picture? when I draw complex roads to simulate my situation, Windows-Piant fills all roads properly.
If i can "fill" as Windows-Paint does, my search will be fine.
any suggestion?
|
|
|
|
|
|
hi all i have a simple (but vital for me) question .
in a dialog box when you press ESC what happends? which function runs ?
thanx
|
|
|
|
|