|
What is the most portable way to do it? I want to make it fullscreen just like IE does it: no caption bar, no borders, no task bar. Currently I'm just removing the WS_OVERLAPPEDWINDOW bits and sets window state to SW_MAXIMIZED. It does work on my Windows XP work machine without a glitch, but does not cover the task bar on another Windows XP machine. Obviously I'm doing something wrong, which just happens to work on my machine. Any ideas?
--
Weiter, weiter, ins verderben.
Wir müssen leben bis wir sterben.
Are you bright too?[^]
|
|
|
|
|
Gud Morning Sir,
i think after doing all the thing you have stated,
you can use MoveWindow() to increase the size of window
to cover the task bar.
and you can Get current Screen Resolution by using
these api's
-->int GetSystemMetrics(
int nIndex // system metric or configuration setting
);
----->BOOL SystemParametersInfo(
UINT uiAction, // system parameter to retrieve or set
UINT uiParam, // depends on action to be taken
PVOID pvParam, // depends on action to be taken
UINT fWinIni // user profile update option
);
Sorry If i wrong
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
Why is the simplest solution sometimes so hard to see?? Thanks!
--
Weiter, weiter, ins verderben.
Wir müssen leben bis wir sterben.
Are you bright too?[^]
|
|
|
|
|
Jörgen Sigvardsson wrote:
Thanks!
it's Great to hear Thanks From a Great personality like you,i love to remeber this day fro life long
-----------------------------
"I Think It Will Help"
-----------------------------
Alok Gupta
visit me at http://www.thisisalok.tk
|
|
|
|
|
adding to above: (Not) covering the task bar is probably caused by different "Auto Hide" settings for it.
we are here to help each other get through this thing, whatever it is Vonnegut jr. boost your code || Fold With Us! || sighist | doxygen
|
|
|
|
|
I am using IE browser in my app to display a bunch of data.
I have some HTML as a resource and I have a bunch of data laid out in a table. I have given IDs to the various <td> tags, each one unique.
I add an event handler in my MFC code that get an OnNavigateComplete call back. Here I can get the document from the browser object, and then search for the element by ID, and then replace the text value in it. Works great. EXCEPT:
When I put in a <SCRIPT> tag in the html! Then NO elements are found with ANY id's. Is this a known bug? Is there something else I am doing wrong? Is there a better place to post this than here?
<i>¡El diablo está en mis pantalones! ¡Mire, mire!</i>
<i>Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!</i>
<font size="1" color="black">SELECT * FROM <b>User</b> WHERE <b>Clue</b> > 0
<b>0 rows returned</b>
</font>
|
|
|
|
|
Never mind!
The problem is where you "post process" the HTML programatically. If you do it in the NavigateComplete event then things get funky. If you use the DocumentComplete event, then you're golden! Woot!
¡El diablo está en mis pantalones! ¡Mire, mire!
Real Mentats use only 100% pure, unfooled around with Sapho Juice(tm)!
SELECT * FROM User WHERE Clue > 0
0 rows returned
|
|
|
|
|
Can someone please explain to me why, when u exceed 20 characters input, it doesnt stop but just keeps on accepting input, and somehow ends up passing through the loop a few times instantaneously?
I mean.. just try typing in some 60 characters or so to see what i mean:
#include <stdio.h>
int IsPalindrome(const char*);
int main(void)
{
char str[21]={NULL};
int i=0;
char c=NULL;
do
{
if(str[0]!=NULL)
{
if(IsPalindrome(str))
printf("This is a palindrome!\n");
else
printf("This isn't a palindrome.\n");
}
i = 0;
while((c=getchar())!='\n' && i<21)
{
if((c>='a' && c<='z') || c=='$')
{
str[i] = c;
i++;
}
}
str[i] = NULL;
} while(str[0]!='$');
return 0;
}
int IsPalindrome(const char* str)
{
int len=0, i=0;
while(str[len++]!=NULL) {}
len--;
for(i=0;i<len;i++)
{
if(str[i]!=str[(len-1)-i])
return 0;
}
return 1;
}
Kuniva
--------------------------------------------
|
|
|
|
|
Change the while loop to:
while((c = getche()) != 0x0d && i<21)
For the IsPalindrome() function, why not just call strrev() followed by strcmp() ?
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Because we couldn't use string functions. And I don't see how u explain what happens here..
Kuniva
--------------------------------------------
|
|
|
|
|
Kuniva wrote:
Because we couldn't use string functions.
Fair enough.
Kuniva wrote:
And I don't see how u explain what happens here..
What's to explain? I trust you know that getchar() buffers input while getche() does not. That's why I suggested using it.
"Opinions are neither right nor wrong. I cannot change your opinion of me. I can, however, change what influences your opinion." - David Crow
|
|
|
|
|
Yea.. my bad, sorry.
Kuniva
--------------------------------------------
|
|
|
|
|
The problem here is that you've allocated a char array of size 21, i.e. with subscripts 0 to 20. Then, you're accepting input of length up to 20 characters, to fill the array you created. This is where the problem occurs, because in actual fact you should only be accepting 19 characters of input, since the twentieth needs to be the NULL string terminator. To clarify, note that str[21] is NOT inside the bounds of the array.
Hope this helps,
--
Andrew.
|
|
|
|
|
Thats not what I was asking, it doesn't have anything to do with my question. What does the size of the array have to do with the while loop not really running? If u don't believe me change it and see for urself.
What I was asking is why when u enter like 45 characters on the command line and press enter, it'll print three lines of output. It's supposed to simply stop at 20 chars (or 19 if u fix it whatever) and show the output, but it doesnt, it just keeps on accepting input even though i should become larger than 20, its like it doesnt execute the body of the loop at all..
Kuniva
--------------------------------------------
|
|
|
|
|
NVM, got it, the getchar() function just behaves differently from what I anticipated. It doesn't just wait for one key to be pressed and then return the result like i thought, instead u can enter as many chars as u want untill u hit return and they all end up in the input buffer, and it returns only the first char u enterred.. kinda weird but whatever.
Kuniva
--------------------------------------------
|
|
|
|
|
Does Any one has any idea how to create a font; that is create a font that support new characters symbols. think of it as creating a new font for a new language with unique characters and symbols.
|
|
|
|
|
How to get untransparent area (RECT) of icon?
|
|
|
|
|
BITMAPINFO &bmInfo = *(LPBITMAPINFO)hDIB Variable Declarations for bmInfo!!!
Hi, what does means the & ? what kind of datatype about bmInfo?? pointer???
Thanks
|
|
|
|
|
This is reference to an object. However defining reference not as parameter of function is bad programing style! Remember this.
|
|
|
|
|
Hi,
I want to get files list created,modified and last accessed on the basis of dates(i.e between 2 dates).How Can I do that.
Drushti
|
|
|
|
|
Use the CFileFind class to iterate through all the files in a specified folder (or subfolders, if you use recursion). From there you can get all the necessary file info for each file it iterates through.
while(true)
{
TryToLearn("C++,MFC");
}
My articles[^]
bdiamond
|
|
|
|
|
Hi ,
I want to get the different File types with there Icons in the Combo box . How can I get it?
Drushti
|
|
|
|
|
Please explain furthur. I do not understand what you are asking.
John
|
|
|
|
|
Ok John,
Here are more details...
What I want is when I click the combo box down arrow,different types of file format ,for example:- Header file, source file,mp3 file, adobe acrobat file,Microsoft word file and so on (i.e all supported and recognized file format by OS), should be displayed.
To have a clear idea ...if u r using Windows 2000 professional , then click Search -> for Files or Folders ->Search Options (hyperlink)->Type->Combobox.
Hope Now I nust have cleared my point.
Drushti
|
|
|
|
|
me think you need to check the registry ( under HREF_CLASSES_ROOT ).
check the "OpenWithList" entries.
Maximilien Lincourt
Your Head A Splode - Strong Bad
|
|
|
|