|
thanks for the suggestion....
I have a doubt ..which dialog will be shown to the user initially --the dialog having the scroll bar or the child dialog having all the controls.
If it is the dialog having the vertical scroll bar then the controls will not be shown to the user until the sroll bar is clicked
|
|
|
|
|
you can set which tab should be the default dialog like setDefaultPage(0); if that is there in ur code
|
|
|
|
|
guys please answer my query..
really in need of help
|
|
|
|
|
i have not added a form view in a tab pane but i believe you can add it in the same manner as you add dialog
like
m_oPhoneBook.Create(IDD_PhoneBook);
just creat a private variable of the form view and in place of the dialog id put the form view id
|
|
|
|
|
megha_gharote wrote: guys please answer my query..
didn't I?
Read the thread from the begining...
nave
|
|
|
|
|
both dialog
assume
--outer dialog is the dialog having the the scroll bar style
--innner dialog have the controls
You can create the innner dialog from the OnInitdialog function of the outer dialog.
Also you must set the SetScrollinfo of the outerdialog from this funtion it self.
you must process the WM_HSCROLL and WM_VSCROLL messages and move the inner dialog from this functions.
nave
|
|
|
|
|
thank u guys....
i ll try this out
|
|
|
|
|
hi i have to display the files and folders of a drive in listview control. how to arrange it in tiles form?
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: how to arrange it in tiles form
change the list controls style to LVS_ICON ( if you have the list control in the resource take propertieds of it->Style tab->View->Icon)
nave
|
|
|
|
|
hmm thanks. but when i made the list control size as window size i cant arrange it in tiles form though i added as LVS_ICON.
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
call the CListCtrl::Arrange() method after you size the list control.
nave
|
|
|
|
|
yes i got that thanks a lot. how to display the contents of a file while clicking it
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
You mean a behaviour similar to explorer? you can use ShellExecute() for this.
nave
|
|
|
|
|
yes thank u very much
Arise Awake Stop Not Till ur Goal is Reached.
|
|
|
|
|
deeps_cute wrote: hi i have to display the files and folders of a drive in listview control. how to arrange it in tiles form?
create ListView with small icon format
"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
Support CRY- Child Relief and you
|
|
|
|
|
i came to know that we can import MS word using MS sdk kit through which we can control the buttons..how it will be possible?With which version of visual studio it will be available?
|
|
|
|
|
Hello everyone,
I heard when define a struct, it is important to make the size of the struct memory aligned.
For example,
<br />
struct foo<br />
{<br />
char p;<br />
char[3] align;<br />
};<br />
<br />
struct goo<br />
{<br />
char p;<br />
};<br />
struct foo is better than struct goo, even if we only use member p.
Allocate 3 bytes to align with memory. But I do not know why make memory aligned is better. Any reasons? (for example, prevent memory from running out?)
thanks in advance,
George
|
|
|
|
|
Putting in your own padding is usually superfluous. The compiler will do it for you, and it will match up the padding to the alignment requirements of the CPU that you are targetting.
|
|
|
|
|
Thanks Mike for answering another question.
I want to know if the compiler does not do it for me directly, why do we need to pad, and what are the dis-advantage if we do not pad?
regards,
George
|
|
|
|
|
George_George wrote: But I do not know why make memory aligned is better. Any reasons?
Read this[^]
|
|
|
|
|
The link does not work, could you provide an alternative one?
regards,
George
|
|
|
|
|
George_George wrote: The link does not work,
Works for me.
|
|
|
|
|
Nibu, I have checked some other resources. It seems that using memory alignment will improve performance by others' points.
But I do not know why alignment will make memory reading operation faster. In my case, foo needs to fetch 4 bytes and goo needs to fetch 1 byte. Even if each time, CPU fetch 4 bytes, I think they should be the same performance, right?
Why do you think memory alignment will improve performance? An example?
regards,
George
|
|
|
|
|
George_George wrote: Why do you think memory alignment will improve performance? An example?
Did you go through the article. It has some good explanations.
|
|
|
|
|
hi:
when i am lisetening to Sharing printer the function of FindNextPrinterChangeNotification wii be fails,and GetLastError()
saying "the handle is invalidation" .
if the prinnter is local ,FindNextPrinterChangeNotification will obtain information about the change.
my code is here
h_change_notification = FindFirstPrinterChangeNotification(h_printer,
PRINTER_CHANGE_JOB ,//0,PRINTER_CHANGE_ALL,
0,
&printerNotifyOptions);
if(h_change_notification == INVALID_HANDLE_VALUE)
{
MessageBox( NULL, "FINd FIRST Error", NULL,MB_OK);
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
GetLastError(),
MAKELANGID (LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL);
MessageBox(NULL,"FindNext Error",lpMsgBuf,MB_OK );
this->m_listeningStatus = LISTENING_OFF;
return FALSE;
}
this->m_listeningStatus = LISTENING_ON;
while(endLoopInd == 0)
{
return_value = WaitForSingleObject( h_change_notification,50);
switch (return_value)
{
case WAIT_OBJECT_0:
return_value = FindNextPrinterChangeNotification(h_change_notification,
&dw_change,
&printerNotifyOptions,
(void **)&printerNotifyInfo);
if(return_value == 0)
{
//error handling
FormatMessage(
FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
NULL,
GetLastError(),
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), // Default language
(LPTSTR) &lpMsgBuf,
0,
NULL);
MessageBox(NULL,"FindNext Error",lpMsgBuf,MB_OK );
this->m_listeningStatus = LISTENING_OFF;
return FALSE;
}
-- modified at 22:28 Tuesday 3rd April, 2007
|
|
|
|