|
No, if you chose generic class and do not specify a base class, then you will not derive your class from any other class. Good Luck.
|
|
|
|
|
well thanx to both of you.
|
|
|
|
|
Hi,
I've been trying to change the row height for my ListCtrl without luck. It does change when I increase the font size, but I want to keep the same font and just increase the row size. I've searched the codeproject but all I can find are articles on how to do this for a List View Control.
Thanks...
|
|
|
|
|
you need to handle ON_WM_MEASUREITEM_REFLECT (reflection).
Override
BEGIN_MESSAGE_MAP(CMyCtrl, CListCtrl)
ON_WM_MEASUREITEM_REFLECT()
END_MESSAGE_MAP()
void CMycntrol::MeasureItem(LPMEASUREITEMSTRUCT lpMeasureItemStruct)
{
lpMeasureItemStruct->itemHeight=20;
}
|
|
|
|
|
Wasn’t even looking for this but I have always wondered if I could change the height of a list control (without changing the font size). Now I know.
Thanks
-------------------------------
DEBUGGING : Removing the needles from the haystack.
|
|
|
|
|
I have a FlexGrid control in my dialog box, with the first row and column fixed. When I click on either the first row or column, the whole row (or column) is highlighted, with the first entry in the grid NOT highlighted. Is there any way to turn this off, so that the whole row is highlighted?
What I am actually doing is when column 2 is clicked on, a control is displayed to allow data entry. When column 1 is clicked, I want to select the whole row (which is happening), but the column 2 data entry control is also being displayed - how can I stop this happening?
Thanks for any help - hope you excuse my newbieness!
Mike
|
|
|
|
|
want to use a CDialogBox in MFC
any idea
please
send me
Vikas Amin
Embin Technology
Bombay
vikas.amin@embin.com
|
|
|
|
|
create a class that inherits from CDialogBox, then call this in your code :
CMyDialog dlg;
dlg.DoModal();
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
You mean CDialog and not CDialogBox (class CDialogBox doesn't exist).
The easiest way is to create a dialog box resource in the resource editor and then open ClassWizard (while the focus is on your dialog resource). It will ask you if you want to create a new class for this resource. Say yes and fill all what is required for you. That's it.
But your question is really vague, so if you want more specific answers, ask specific questions.
|
|
|
|
|
Hi
I have a dialog based MFC application in which I have one Microsoft Web Browser ActiveX control and I navigate sites using it.
Now I want to programm is such that when I press function key "F3", it should hide my cursor and when next time I press "F3" it should show my cursor back.
Now to capture key press event i use PreTranslateMeaasge() function and in that I get VK_F3 as virtual key code for F3. Now I hide my cursor using ShowCursor(FALSE) or and when again F3 key is press I use ShowCursor(TRUE) to show my cursor back....It hides my cursor when I press F3 key but my problem is : It takes few seconds to hide my cursor and also few more seconds to show after pressing F3. Also if I move my mouse even slight faster, it shows my mouse pointer in between.
I have also put code in WM_MOUSEMOVE message so that when mouse is moved it checks one boolean variable and then shows or hides cursor.....
Still same problem arries....any idea......?
What seems to be the problem....What should I do to overcome this problem ?
Thanking you
Amarelia Maehsh
Gujarat
India
|
|
|
|
|
Is Unix/Linux losing battle ground to Windows???
|
|
|
|
|
Linux has so far expanded at the expense of Unix while MS server-side revenues are still growing. Both Linux and Windows are growing at the expense of commercial Unix.
So, Unix is losing to Linux and Windows.
Linux is not losing to Windows.
Windows is not losing to Linux - so far.
Kevin
|
|
|
|
|
Hmmm, I personally enjoy doing development work on Windows as it is user friendly. But possibly in the very near future I will have to choose to work on either Unix/Linux or on Windows.
To keep sharp in the competition, it's best to keep one set of skills polished at all time, that's my opinion personally. Some people may not agree. I just dont think it is that easy to switch back to Windows/Unix after quite a few years working on the other, at least the employer who does the hiring thinks this way. Do you agree?
So,,,windows,,,unix,,, I dont want to spent next 5~6 years on Unix then find out I am trapped in an isolated ever-shrinking island where across the sea is the vast landscape of windows' world,,, I am just nagging myself here. This has nothing to do with C++/VC theme,,,
|
|
|
|
|
Laffis wrote:
Hmmm, I personally enjoy doing development work on Windows as it is user friendly.
So do I. My one brief experience of Unix development was pretty unpleasant. But this was over 6 years ago.
Laffis wrote:
But possibly in the very near future I will have to choose to work on either Unix/Linux or on Windows.
I try to go where the market demand is. There's more than enough work in Windows at the moment, and probably will be for some time.
Laffis wrote:
I just dont think it is that easy to switch back to Windows/Unix after quite a few years working on the other, at least the employer who does the hiring thinks this way. Do you agree?
It's more the way employers think. They think if you haven't used some skill in the past 6 months then you can't use it at all!
Laffis wrote:
dont want to spent next 5~6 years on Unix then find out I am trapped in an isolated ever-shrinking island
Linux rather than Unix would be the way to go if you wanted to try something other than Windows, as it's a growing market.
Kevin
|
|
|
|
|
you talk about servers or common users computers ?
which points do you compare to ?
your question have no content sir...
moreover, this is a general question (not a programming one), so you could have asked it on the Lounge[^]...
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
As I understand it, Linux is growing on the server side at the expense of Unx rather than Windows. On the desktop very little is changing.
Kevin
|
|
|
|
|
I have a single document application. I want to create a log window in my app similar to Output window in VC++ IDE.I need to update it at runtime, and scroll it down automatically.
How can i do this?
Thanks a lot for your efforts.
All efforts are valueable.
|
|
|
|
|
You can derive your class from CScrollView. Then use a splitter window class to split your window. It's too long to explain how to do that exactly (and too specific) but there is a lot of documentation in the MSDN.
|
|
|
|
|
Here is an alternative.
"One must learn from the bite of the fire to leave it alone." - Native American Proverb
|
|
|
|
|
How to convert a *.dat file to *.bmp file, so that the *.bmp file can be opened in Paint.
aasstt
|
|
|
|
|
this doesn't mean nothing... a .dat can contain whatever the one who created it wanted to put in it... if it already contains a bitmap, so just rename the file...
otherwise, you'll have to know what format is used in the dat file.
TOXCCT >>> GEII power [toxcct][VisualCalc]
|
|
|
|
|
do this,
in the command prompt, type
c:\..\..ren *.dat *.bmp,
and now all the .dat files are .bmp files..
V
|
|
|
|
|
hi,
first: how to create dialog based app in win32 without using resource
and to add radio button and listbox
second: after this how modeless dialog can be created from rom that modal and to transfer data from modal and to modeless in win32
|
|
|
|
|
tamsel wrote:
to add radio button and listbox
I know the answer of this Question But forget the Api...
tamsel wrote:
how to create dialog based app in win32 without using resource
use CreateWindow (if using Win32 api) with BUTTON as Class ....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
|
|
|
|
|
You could use CreateDialogIndirect to create the dialog window. It uses a template in memory in standard form but not neccessarily a resource identifier. Adding additional controls on the fly can be done with CreateWindow and specifying the appropriate class.
Not sure what you mean on your second question. There is very little difference in the dialog template between modal and modeless.
|
|
|
|