|
thanks
IN A DAY, WHEN YOU DON'T COME ACROSS ANY PROBLEMS - YOU CAN BE SURE THAT YOU ARE TRAVELLING IN A WRONG PATH
|
|
|
|
|
You're welcome.
|
|
|
|
|
I had to adjust the trolls vote to you my friend.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Thanks Rajesh it seems that somebody doesnt like our answers.
|
|
|
|
|
How to Full Screen in SDI like ACDsee?
Help~~~~~~~~~~~~~~~~
modified on Monday, June 16, 2008 3:55 AM
|
|
|
|
|
ChangeDisplaySettings[^].
Example:
DEVMODE dmScreenSettings;
memset(&dmScreenSettings,0,sizeof(dmScreenSettings));
dmScreenSettings.dmSize = sizeof(dmScreenSettings);
dmScreenSettings.dmPelsWidth = iWidth;
dmScreenSettings.dmPelsHeight = iHeight;
dmScreenSettings.dmBitsPerPel = 32;
dmScreenSettings.dmFields = DM_PELSWIDTH | DM_PELSHEIGHT | DM_BITSPERPEL;
if (ChangeDisplaySettings(&dmScreenSettings,CDS_FULLSCREEN)
!= DISP_CHANGE_SUCCESSFUL)
{
}
With iWidth and iHeight being the resolution.
|
|
|
|
|
This seems problem by MFC design.
From MSDN:
Set m_nCmdShow to SW_SHOWMAXIMIZED to maximize or SW_SHOWMINIMIZED to minimize the main frame window initially. This variable has to be modified in the InitInstance() function of the CWinApp-derived class before the main window is made visible.
Refer here:FIX: Advanced Options for SDI Application in Appwizard
[^]
--
"Programming is an art that fights back!"
|
|
|
|
|
|
When in "Full-Screen" mode there is still a white border along the bottom and right hand side of the screen. For true full-screen this should be removed also. I have been trying unsuccessfully to remove it though.
How can i do it?
|
|
|
|
|
Did you split diaogdialog?
|
|
|
|
|
how to use clistctrl to create multiple columns and add strings to the columns???i have created a variable to my listbox and it does not has InsertColumn() method
Raja
|
|
|
|
|
Mohanraj D wrote: how to use clistctrl to create multiple columns and add strings to the columns???i have created a variable to my listbox
A list control is not a list box. Is that a CListCtrl or a CListBox ? Please be specific.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i have a listbox and i need to create a reportview in it,what should be done???i got earlier replies like use clistctrl to display text horizontally...but i don't know how to use CListCtrl,now i have a listbox and have created a variable for it,what should be done to display text as shown below
no name starttime endtime
1 first 10 12
2 second 11 13
.....
Raja
|
|
|
|
|
To display such columnar information, you should use CListCtrl. Googling for CListCtrl Example gave me this link[^]. The example over there is precise, easy to understand. Get back with specific queries, if you have problems doing it.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i have a list box and i rightclick it and add a variable to it named list and after doing it if i view the methods for list i don't have InsertColumn( ) method atall in it!!!what should be done???
Raja
|
|
|
|
|
What is the type of your variable ?
|
|
|
|
|
the variable is of CListBox type
Raja
|
|
|
|
|
CListBox does NOT have an InsertColumn() method. How many times have you been told? If you need to display information in columnar style, use a CListCtrl. I pointed out an example to use CListCtrl as well. Nobody can help you out if you are not willing to help yourself at first.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i have done the following code inside the listctrl..there is no errors but while i run it iam not able to see the columns???
list.InsertColumn(0,"Heading 1" ,LVCFMT_LEFT, 100);
list.InsertColumn(1, "Heading 2",LVCFMT_LEFT, 120);
list.InsertItem(0,"Item1");
list.InsertItem(1,"Item2");
Raja
|
|
|
|
|
Mohanraj D wrote: i have done the following code inside the listctrl..
What do you mean "inside list control"? Where have you written this code?
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
i have written here
void ClistctrlDlg::OnLvnItemchangedList1(NMHDR *pNMHDR, LRESULT *pResult)
{
list.InsertColumn(0,"Heading 1" ,LVCFMT_LEFT, 100);
list.InsertColumn(1, "Heading 2",LVCFMT_LEFT, 120);
list.InsertItem(0,"Item1");
list.InsertItem(1,"Item2");
LPNMLISTVIEW pNMLV = reinterpret_cast<LPNMLISTVIEW>(pNMHDR);
*pResult = 0;
}
Raja
|
|
|
|
|
What is the purpose of writing it up there? Do you even know what you are trying to do? Your need is to initialize some control and if you don't know where to do it, it is almost impossible for anybody to offer you help over forums like these. You will need to read a book on MFC (or whatever you want to do programming on).
Please write code to initialize controls on your InitDialog() function.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
Mohanraj D wrote: what should be done???
You should use a list control instead of a listbox.
"Love people and use things, not love things and use people." - Unknown
"To have a respect for ourselves guides our morals; to have deference for others governs our manners." - Laurence Sterne
|
|
|
|
|
You still didn't answer the question, so here is an article about CListCtrl[^] and here is an article about CListBox[^]. Pick the one you need.
But as you need multiple columns, I would guess you need a CListCtrl.
|
|
|
|
|
how to add items to a report(listcontrol)column wise....as ....
list.Insertitem() adds items in the next row of the first column alone
Raja
|
|
|
|